本文整理汇总了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;未经允许,请勿转载。 |
请发表评论