當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。