Yes, that'd be the place to do it.
Be sure to add the following declaration to your DetailsView in the aspx page:
OnItemUpdated="dvwArticle_ItemUpdated"
Then, in the code behind, add the following event handler:
protected void dvwArticle_ItemUpdated(object sender, DetailsViewUpdatedEventArgs e)
{
this.Response.Redirect(String.Format("~/ShowArticle.aspx?ID={0}", e.Keys["ID"].ToString()), true);
}
You could also do something similar with ItemInserted if you want.
|