本文整理汇总了C#中System.Web.UI.WebControls.FormViewCommandEventArgs类的典型用法代码示例。如果您正苦于以下问题:C# FormViewCommandEventArgs类的具体用法?C# FormViewCommandEventArgs怎么用?C# FormViewCommandEventArgs使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
FormViewCommandEventArgs类属于System.Web.UI.WebControls命名空间,在下文中一共展示了FormViewCommandEventArgs类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。
示例1: ItemCommand
protected void ItemCommand(object sender, FormViewCommandEventArgs e)
{
if (e.CommandName.Equals("Cancel", StringComparison.OrdinalIgnoreCase))
{
Response.Redirect("../Default");
}
}
开发者ID:damgel,项目名称:RHApp,代码行数:7,代码来源:Delete.aspx.cs
示例2: frmv_PersonalProfile_ItemCommand
protected void frmv_PersonalProfile_ItemCommand(object sender, FormViewCommandEventArgs e)
{
if (e.CommandName.Equals("Update"))
{
EditProfile();
}
}
开发者ID:wedofreelancecode,项目名称:taxgenieonline,代码行数:7,代码来源:editprofile.aspx.cs
示例3: attractionsForm_ItemCommand
protected void attractionsForm_ItemCommand(object sender, FormViewCommandEventArgs e)
{
if (e.CommandName == "Cancel")
{
Response.Redirect("~/WebForms");
}
}
开发者ID:ArthurYiL,项目名称:ASP.NET-MVC-and-DbGeography,代码行数:7,代码来源:Delete.aspx.cs
示例4: EventEditorFormView_ItemCommand
/**
* This method is trigggered when we do the following:
* we are in default mode, and we press the "edit" button
* we select the "new" button
* we are in "edit" mode, and we press the "update" button
* NOT REALLY NEEDED...
* */
protected void EventEditorFormView_ItemCommand(Object sender, FormViewCommandEventArgs e)
{
/**if (e.CommandName == "Edit")
{
Response.Write("Editing");
}
else if (e.CommandName == "New")
{
Response.Write("Pressed New");
}
else if (e.CommandName == "Update")
{
Response.Write("Updating");
}
else if (e.CommandName == "Delete")
{
Response.Write("Deleting");
}
else if (e.CommandName == "Cancel")
{
Response.Write("Cancelling");
}
else if (e.CommandName == "Insert")
{
Response.Write("Insert 1");
} **/
}
开发者ID:jovinoribeiro,项目名称:EBFRW,代码行数:34,代码来源:EventEditor.aspx.cs
示例5: ItemCommand
protected void ItemCommand(object sender, FormViewCommandEventArgs e)
{
if (e.CommandName.Equals("Cancel", StringComparison.OrdinalIgnoreCase))
{
}
}
开发者ID:rabbal,项目名称:AspNetWebForms-Forum,代码行数:7,代码来源:Delete.aspx.cs
示例6: ItemCommand
protected void ItemCommand(object sender, FormViewCommandEventArgs e)
{
if (e.CommandName.Equals("Cancel", StringComparison.OrdinalIgnoreCase))
{
Response.RedirectPermanent(GetRouteUrl("ShowPost", new { topicId = RouteData.Values["topicId"] }) + "#post_" + RouteData.Values["id"]);
}
}
开发者ID:rabbal,项目名称:AspNetWebForms-Forum,代码行数:7,代码来源:Edit.aspx.cs
示例7: FormViewTipoCampi_ItemCommand
protected void FormViewTipoCampi_ItemCommand(object sender, FormViewCommandEventArgs e)
{
if (e.CommandName == "Cancel")
{
Response.Redirect(lblPreviousPage.Text);
}
}
开发者ID:PaoloMisson,项目名称:GATEvolution,代码行数:7,代码来源:RefertiConfigurationCampi.aspx.cs
示例8: FormView1_ItemCommand
protected void FormView1_ItemCommand(object sender, FormViewCommandEventArgs e)
{
if (e.CommandName == DataControlCommands.CancelCommandName)
{
Response.Redirect(table.ListActionPath);
}
}
开发者ID:anurse,项目名称:ReviewR,代码行数:7,代码来源:Insert.aspx.cs
示例9: attractionsForm_ItemCommand
protected void attractionsForm_ItemCommand(object sender, FormViewCommandEventArgs e)
{
if (e.CommandName == "Cancel")
{
Response.RedirectToRoute("TouristAttraction");
}
}
开发者ID:rustd,项目名称:ASP.NET-MVC-and-DbGeography,代码行数:7,代码来源:Delete.aspx.cs
示例10: contactCancel
protected void contactCancel(object sender, FormViewCommandEventArgs e)
{
if (e.CommandName == "Cancel")
{
Response.Redirect("index.aspx");
}
}
开发者ID:ahmedengu,项目名称:Simple-ASP.NET-Website,代码行数:7,代码来源:contact.aspx.cs
示例11: CustomerFormView_ItemCommand
protected void CustomerFormView_ItemCommand(object sender, FormViewCommandEventArgs e)
{
if (e.CommandName == "Cancel")
{
// Dirigera om klienten till lista med kunder.
Response.RedirectToRoute("Customers");
}
}
开发者ID:OskarKlintrotSkolarbeteWP14,项目名称:kursmaterial,代码行数:8,代码来源:Create.aspx.cs
示例12: FormView1_ItemCommand
protected void FormView1_ItemCommand(object sender, FormViewCommandEventArgs e)
{
if (e.CommandName == "InsertCode")
{
EntityDataSource1.InsertParameters["codif1"] = new Parameter("codif1", TypeCode.String, ((TextBox)FormView1.FindControl("TextBox1")).Text);
EntityDataSource1.InsertParameters["active"] = new Parameter("active", TypeCode.Boolean, "true");
FormView1.InsertItem(false);
}
}
开发者ID:gnomix,项目名称:T.A.L.K.,代码行数:9,代码来源:CodifMgt.aspx.cs
示例13: OnBubbleEvent
/// <internalonly/>
/// <devdoc>
/// </devdoc>
protected override bool OnBubbleEvent(object source, EventArgs e) {
if (e is CommandEventArgs) {
FormViewCommandEventArgs args = new FormViewCommandEventArgs(source, (CommandEventArgs)e);
RaiseBubbleEvent(this, args);
return true;
}
return false;
}
开发者ID:nlh774,项目名称:DotNetReferenceSource,代码行数:12,代码来源:FormViewRow.cs
示例14: FormView1_ItemCommand
protected void FormView1_ItemCommand(object sender, FormViewCommandEventArgs e)
{
switch (e.CommandName)
{
case "SwitchViewByID":
GridView1.DataBind();
GridView1.EditIndex = -1;
break;
}
}
开发者ID:supratimsengupta,项目名称:ASTM,代码行数:10,代码来源:Default.aspx.cs
示例15: fvEditTipoEquipamento_ItemCommand
protected void fvEditTipoEquipamento_ItemCommand(object sender, FormViewCommandEventArgs e)
{
if(e.CommandName == "Guardar")
{
SqlDataSourceTipoEquipamento.UpdateParameters["Id_Usuario"].DefaultValue = WebMatrix.WebData.WebSecurity.CurrentUserId.ToString();
SqlDataSourceTipoEquipamento.UpdateParameters["TipoEquipamento"].DefaultValue = ((TextBox)fvEditTipoEquipamento.FindControl("txtEditTipo")).Text;
SqlDataSourceTipoEquipamento.Update();
ScriptManager.RegisterStartupScript(Page, Page.GetType(), "myModalOk", "$('#myModalOk').modal();", true);
gvTipoEquipamento.SelectedIndex = -1;
}
}
开发者ID:Eriksonlove,项目名称:GestINEE,代码行数:11,代码来源:GestaoEquipamentos.aspx.cs
示例16: fvClasifDef_ItemCommand
protected void fvClasifDef_ItemCommand(object sender, FormViewCommandEventArgs e)
{
if(e.CommandName == "Guardar")
{
SqlDataSourceClasifDef.UpdateParameters["Id_Usuario"].DefaultValue = WebMatrix.WebData.WebSecurity.CurrentUserId.ToString();
SqlDataSourceClasifDef.UpdateParameters["Id_Def"].DefaultValue = ((DropDownList)fvClasifDef.FindControl("ddlDef")).SelectedValue.ToString();
SqlDataSourceClasifDef.UpdateParameters["ClasifDef"].DefaultValue = ((TextBox)fvClasifDef.FindControl("txtClasifDef")).Text;
SqlDataSourceClasifDef.Update();
ScriptManager.RegisterStartupScript(Page, Page.GetType(), "myModalOk", "$('#myModalOk').modal();", true);
gvClasifDef.DataBind();
gvClasifDef.SelectedIndex = -1;
}
}
开发者ID:Eriksonlove,项目名称:GestINEE,代码行数:13,代码来源:GestaoDeficiencias.aspx.cs
示例17: FormView1_ItemCommand
protected void FormView1_ItemCommand(object sender, FormViewCommandEventArgs e)
{
if (e.CommandName.Equals("Edit"))
FormView1.ChangeMode(FormViewMode.Edit);
else if (e.CommandName.Equals("New"))
FormView1.ChangeMode(FormViewMode.Insert);
else if (e.CommandName.Equals("Cancel"))
FormView1.ChangeMode(FormViewMode.ReadOnly);
else if (e.CommandName.Equals("Update"))
UpdateFormView();
//else if (e.CommandName.Equals("Insert"))
// InsertFormView();
}
开发者ID:phwuxj99,项目名称:iserp,代码行数:13,代码来源:ClientSearch.aspx.cs
示例18: FormView1_ItemCommand
protected void FormView1_ItemCommand(object sender, FormViewCommandEventArgs e)
{
switch (e.CommandName)
{
case "Cancel":
Response.Redirect("Default.aspx");
break;
case "Send":
FormView1.InsertItem(true);
Response.Redirect("Default.aspx");
break;
}
}
开发者ID:OldFreelance,项目名称:BillingSystem,代码行数:13,代码来源:WriteTo.aspx.cs
示例19: Unnamed_ItemCommand
protected void Unnamed_ItemCommand(object sender, FormViewCommandEventArgs e)
{
switch (e.CommandName)
{
case "Save":
this.res.Text = ((DropDownList)this.formView.FindControl("ddlJobs")).SelectedValue;
break;
case "Cancel":
this.res.Text = string.Empty;
break;
default:
throw new InvalidOperationException("Invalid command");
}
}
开发者ID:jupaol,项目名称:SO-Answers,代码行数:14,代码来源:FormViewPagerBug.aspx.cs
示例20: FV_FareItem_ItemCommand
protected void FV_FareItem_ItemCommand(object sender, FormViewCommandEventArgs e)
{
switch (e.CommandName)
{
case "DoInsert":
InsertFareItem();
break;
case "DoUpdate":
UpdateFareItem(Convert.ToInt32(e.CommandArgument));
break;
case "DoCancel":
this.FV_FareItem.Visible = false;
BindItemList(Convert.ToInt32(this.GV_FareList.SelectedValue));
break;
}
}
开发者ID:senolakkas,项目名称:ferrybooking,代码行数:16,代码来源:frmFare.aspx.cs
注:本文中的System.Web.UI.WebControls.FormViewCommandEventArgs类示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论