• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

C# WebControls.DetailsViewCommandEventArgs类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



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

示例1: JobForm_ItemCommand

 protected void JobForm_ItemCommand(object sender, DetailsViewCommandEventArgs e)
 {
     if (e.CommandName == "Cancel")
     {
         Response.Redirect("Default.aspx");
     }
 }
开发者ID:bigWebApps,项目名称:Substitute,代码行数:7,代码来源:FulFillJob.aspx.cs


示例2: DetailsView1_ItemCommand

 protected void DetailsView1_ItemCommand(object sender, DetailsViewCommandEventArgs e)
 {
     if (e.CommandName == DataControlCommands.CancelCommandName)
     {
         Response.Redirect(table.ListActionPath);
     }
 }
开发者ID:overeemm,项目名称:yawamt,代码行数:7,代码来源:Insert.aspx.cs


示例3: ContactDetailsView_ItemCommand

 protected void ContactDetailsView_ItemCommand(object sender, DetailsViewCommandEventArgs e)
 {
     if (e.CommandName == "Cancel")
     {
         Response.Redirect("ContactList.aspx");
     }
 }
开发者ID:jasimuddin534,项目名称:jasim_basis,代码行数:7,代码来源:ContactDetails.aspx.cs


示例4: accountsDetailsView_ItemCommand

 protected void accountsDetailsView_ItemCommand(Object sender,DetailsViewCommandEventArgs e)
 {
     if (e.CommandName == "Cancel")
     {
         Response.Redirect("AccountList.aspx");
     }
 }
开发者ID:jasimuddin534,项目名称:jasim_basis,代码行数:7,代码来源:AccountDetails.aspx.cs


示例5: dvCurrPoll_ItemCommand

 protected void dvCurrPoll_ItemCommand(object sender, DetailsViewCommandEventArgs e)
 {
     if (e.CommandName == "Cancel")
     {
         DeselectPoll();
     }
 }
开发者ID:Nevs12,项目名称:LiveandevSite,代码行数:7,代码来源:ManagePolls.aspx.cs


示例6: opportunityDetailsView_ItemCommand

 protected void opportunityDetailsView_ItemCommand(Object sender, 
                                                            DetailsViewCommandEventArgs e)
 {
     if (e.CommandName == "Cancel")
     {
         Response.Redirect("OpportunityList.aspx");
     }
 }
开发者ID:jasimuddin534,项目名称:jasim_basis,代码行数:8,代码来源:OpportunityDetails.aspx.cs


示例7: dvwShippingMethod_ItemCommand

 protected void dvwShippingMethod_ItemCommand(object sender, DetailsViewCommandEventArgs e)
 {
     if (e.CommandName == "Cancel")
      {
     gvwShippingMethods.SelectedIndex = -1;
     gvwShippingMethods.DataBind();
      }
 }
开发者ID:BGCX261,项目名称:zqerpjohnny-svn-to-git,代码行数:8,代码来源:ManageShippingMethods.aspx.cs


示例8: AccountDetailsView_ItemCommand

 protected void AccountDetailsView_ItemCommand(object sender, DetailsViewCommandEventArgs e)
 {
     if (e.CommandName == "Cancel")
     {
         AccountDetailsView.DataBind();
         AccountDetailsView.ChangeMode(DetailsViewMode.Insert);
     }
 }
开发者ID:jasimuddin534,项目名称:jasim_basis,代码行数:8,代码来源:Contacts.aspx.cs


示例9: CompanyDetailsView_ItemCommand

 protected void CompanyDetailsView_ItemCommand(object sender, DetailsViewCommandEventArgs e)
 {
     if (e.CommandName == "Cancel")
     {
         Label1.Text = "Submission cancelled <br/> <p>Your changes have been discarded</p>";
         UpdatePanel1.Update();
     }
 }
开发者ID:jasimuddin534,项目名称:jasim_basis,代码行数:8,代码来源:CompanySetup.aspx.cs


示例10: dvCategory_ItemCommand

 protected void dvCategory_ItemCommand(object sender, DetailsViewCommandEventArgs e)
 {
     if (e.CommandName == "Cancel")
     {
         gvCategories.SelectedIndex = -1;
         gvCategories.DataBind();
     }
 }
开发者ID:Nevs12,项目名称:LiveandevSite,代码行数:8,代码来源:ManageCategories.aspx.cs


示例11: dvCurrComment_ItemCommand

 protected void dvCurrComment_ItemCommand(object sender, DetailsViewCommandEventArgs e)
 {
     if (e.CommandName == "Cancel")
     {
         gvAllComments.SelectedIndex = -1;
         gvAllComments.DataBind();
     }
 }
开发者ID:Nevs12,项目名称:LiveandevSite,代码行数:8,代码来源:ManageComments.aspx.cs


示例12: dvwOrderStatus_ItemCommand

 protected void dvwOrderStatus_ItemCommand(object sender, DetailsViewCommandEventArgs e)
 {
     if (e.CommandName == "Cancel")
      {
     gvwOrderStatuses.SelectedIndex = -1;
     gvwOrderStatuses.DataBind();
      }
 }
开发者ID:BGCX261,项目名称:zqerpjohnny-svn-to-git,代码行数:8,代码来源:ManageOrderStatuses.aspx.cs


示例13: dvMusterijeDetalji_ItemCommand

        //preusmeravanje na stranicu Zakljucnice preko dugmeta OtvoriZakljucnicu
        protected void dvMusterijeDetalji_ItemCommand(object sender, DetailsViewCommandEventArgs e)
        {
            if (e.CommandName == "btnOtvoriZakljucnicu")
            {
                IDMusterije = e.CommandArgument.ToString();

            }
        }
开发者ID:urkep79,项目名称:TALARIS-1,代码行数:9,代码来源:Musterije.aspx.cs


示例14: inviaMail

        protected void inviaMail(object sender, DetailsViewCommandEventArgs e)
        {
            if (e.CommandName == "inviaMail")
            {
                //pagina invio mail
                Response.Redirect("~/Admin/InviaMail.aspx" + "?ID=" + idSocieta);

                }
        }
开发者ID:caspandre,项目名称:aptportal,代码行数:9,代码来源:GestioneSocieta.aspx.cs


示例15: OnBubbleEvent

        /// <internalonly/>
        /// <devdoc>
        /// </devdoc>
        protected override bool OnBubbleEvent(object source, EventArgs e) {
            if (e is CommandEventArgs) {
                DetailsViewCommandEventArgs args = new DetailsViewCommandEventArgs(source, (CommandEventArgs)e);

                RaiseBubbleEvent(this, args);
                return true;
            }
            return false;
        }
开发者ID:nlh774,项目名称:DotNetReferenceSource,代码行数:12,代码来源:DetailsViewRow.cs


示例16: DetailsView1_ItemCommand

 protected void DetailsView1_ItemCommand(object sender, DetailsViewCommandEventArgs e)
 {
     if (e.CommandName == "ReturnCommand")
     {
         DataGridView.Attributes["class"] = "Display";
         DataDetailView.Attributes["class"] = "DisplayNone";
         RecordsReturned.Attributes["class"] = "Display";
         PartialReturned.Attributes["class"] = "Display";
     }
 }
开发者ID:justinkreft,项目名称:retentionscheduleapplication,代码行数:10,代码来源:stateretentionpolicies.aspx.cs


示例17: DetailsView_ItemCommand

        protected void DetailsView_ItemCommand(object sender, DetailsViewCommandEventArgs e)
        {
            InfoList.Items.Clear();
            switch (e.CommandName) {
                case "TestWeb":
                    try
                    {
                        IBaseDriver drv = null;
                        switch (mm.DbServer)
                        {
                            case DbServer.MySql:
                                drv = new BaseDriverMySql(((TextBox)(DetailsView.Rows[1].Cells[1].Controls[0])).Text);
                                break;
                            case DbServer.MsSql:
                                drv = new BaseDriverMsSql(((TextBox)(DetailsView.Rows[1].Cells[1].Controls[0])).Text);
                                break;
                        }

                        drv.TestConnection();
                        InfoList.Items.Add("Connection successful");
                    }
                    catch (Exception ew) {
                        InfoList.Items.Add(ew.Message);
                    }
                    break;
                case "TestIS":
                    try
                    {
                        IBaseDriver drv = null;
                        switch (mm.DbServer)
                        {
                            case DbServer.MySql:
                                drv = new BaseDriverMySql(((TextBox)(DetailsView.Rows[3].Cells[1].Controls[0])).Text);
                                break;
                            case DbServer.MsSql:
                                drv = new BaseDriverMsSql(((TextBox)(DetailsView.Rows[3].Cells[1].Controls[0])).Text);
                                break;
                        }
                        drv.TestConnection();
                        InfoList.Items.Add("Connection successful");
                    }
                    catch (Exception ei)
                    {
                        InfoList.Items.Add(ei.Message);
                    }
                    break;
                case "Cancel":
                        Response.RedirectToRoute("ProjectsRoute");
                    break;
                case "Edit":
                    DetailsView.ChangeMode(DetailsViewMode.Edit);
                    break;
            }
        }
开发者ID:rjankovic,项目名称:webminVS2010,代码行数:54,代码来源:ProjectDetail.aspx.cs


示例18: DetailsView1_ItemCommand

 protected void DetailsView1_ItemCommand(object sender, DetailsViewCommandEventArgs e)
 {
     if(e.CommandName == "Update")
     {
         ClientScript.RegisterStartupScript(Page.GetType(), "rejecting", "CloseAndRebind();", true);
     }
     else
     {
         ClientScript.RegisterStartupScript(Page.GetType(), "rejecting", "CancelEdit()", true);
     }
 }
开发者ID:KdGAppli,项目名称:Nevenactiviteiten,代码行数:11,代码来源:RejectForm.aspx.cs


示例19: CampaignDetailsView_ItemCommand

 protected void CampaignDetailsView_ItemCommand(object sender, DetailsViewCommandEventArgs e)
 {
     if (e.CommandName == "Cancel")
     {
         Session["EditCampaignID"] = 0;
         MessageLiteral.Text = "Changes discarded <br /> <br /> <p>Your changes have been discarded</p>";
         CampaignDetailsView.DataBind();
         CampaignDetailsView.ChangeMode(DetailsViewMode.Insert);
         ScriptManager.RegisterClientScriptBlock(this, this.GetType(), "script", "ShowAlertModal();", true);
     }
 }
开发者ID:jasimuddin534,项目名称:jasim_basis,代码行数:11,代码来源:Campaigns.aspx.cs


示例20: InvoiceDetailsView_ItemCommand

 //cancel invoice
 protected void InvoiceDetailsView_ItemCommand(object sender, DetailsViewCommandEventArgs e)
 {
     if (e.CommandName == "Cancel")
     {
         //stay current tab
         MsgLiteral.Text = "Submission cancelled";
         alertLabel.Text = "Your changes have been discarded";
         InvoiceDetailsView.DataBind();
         InvoiceDetailsView.ChangeMode(DetailsViewMode.Insert);
         ScriptManager.RegisterClientScriptBlock(this, this.GetType(), "script", "ShowAlertModal();", true);
         //Move to View Tab
         //ScriptManager.RegisterClientScriptBlock(this, this.GetType(), "script", "GoToTab(2);", true);
     }
 }
开发者ID:jasimuddin534,项目名称:jasim_basis,代码行数:15,代码来源:Invoices.aspx.cs



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# WebControls.DetailsViewInsertEventArgs类代码示例发布时间:2022-05-26
下一篇:
C# WebControls.DetailsView类代码示例发布时间:2022-05-26
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap