当前位置: 首页>>代码示例>>C#>>正文


C# WebControls.FormViewCommandEventArgs类代码示例

本文整理汇总了C#中System.Web.UI.WebControls.FormViewCommandEventArgs的典型用法代码示例。如果您正苦于以下问题:C# FormViewCommandEventArgs类的具体用法?C# FormViewCommandEventArgs怎么用?C# FormViewCommandEventArgs使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


FormViewCommandEventArgs类属于System.Web.UI.WebControls命名空间,在下文中一共展示了FormViewCommandEventArgs类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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


注:本文中的System.Web.UI.WebControls.FormViewCommandEventArgs类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。