G
Guest
I'm trying to code a FormView page to return to the Gridview List if the user
clicks the Cancel button while in insert mode but nothing happens with the
following code:
void VanDetailFormView_ItemCommand(Object sender,
FormViewCommandEventArgs e)
{
if (e.CommandName == "Cancel")
{
Response.Redirect("VanList.aspx");
}
}
Is there a better way to do this?
Thanks.
clicks the Cancel button while in insert mode but nothing happens with the
following code:
void VanDetailFormView_ItemCommand(Object sender,
FormViewCommandEventArgs e)
{
if (e.CommandName == "Cancel")
{
Response.Redirect("VanList.aspx");
}
}
Is there a better way to do this?
Thanks.