I have a DetailsView in Insert mode. After the user clicks the update control, ItemUpdated fires and redirects to another page. How can I perform this redirect when the user clicks the Cancel control?
protected void DetailsView1_ItemCommand( object sender, DetailsViewCommandEventArgs e ) { if ( e.CommandName.Equals ( "cancel", StringComparison.CurrentCultureIgnoreCase ) ) { // redirect somewhere } }