本文整理汇总了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");
}
}
示例2: frmv_PersonalProfile_ItemCommand
protected void frmv_PersonalProfile_ItemCommand(object sender, FormViewCommandEventArgs e)
{
if (e.CommandName.Equals("Update"))
{
EditProfile();
}
}
示例3: attractionsForm_ItemCommand
protected void attractionsForm_ItemCommand(object sender, FormViewCommandEventArgs e)
{
if (e.CommandName == "Cancel")
{
Response.Redirect("~/WebForms");
}
}
示例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");
} **/
}
示例5: ItemCommand
protected void ItemCommand(object sender, FormViewCommandEventArgs e)
{
if (e.CommandName.Equals("Cancel", StringComparison.OrdinalIgnoreCase))
{
}
}
示例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"]);
}
}
示例7: FormViewTipoCampi_ItemCommand
protected void FormViewTipoCampi_ItemCommand(object sender, FormViewCommandEventArgs e)
{
if (e.CommandName == "Cancel")
{
Response.Redirect(lblPreviousPage.Text);
}
}
示例8: FormView1_ItemCommand
protected void FormView1_ItemCommand(object sender, FormViewCommandEventArgs e)
{
if (e.CommandName == DataControlCommands.CancelCommandName)
{
Response.Redirect(table.ListActionPath);
}
}
示例9: attractionsForm_ItemCommand
protected void attractionsForm_ItemCommand(object sender, FormViewCommandEventArgs e)
{
if (e.CommandName == "Cancel")
{
Response.RedirectToRoute("TouristAttraction");
}
}
示例10: contactCancel
protected void contactCancel(object sender, FormViewCommandEventArgs e)
{
if (e.CommandName == "Cancel")
{
Response.Redirect("index.aspx");
}
}
示例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");
}
}
示例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);
}
}
示例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;
}
示例14: FormView1_ItemCommand
protected void FormView1_ItemCommand(object sender, FormViewCommandEventArgs e)
{
switch (e.CommandName)
{
case "SwitchViewByID":
GridView1.DataBind();
GridView1.EditIndex = -1;
break;
}
}
示例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;
}
}