public void G2_RowCommand(object sender, GridViewCommandEventArgs e)// in GridView,each button that be clicked,call this Gridview event { if (e.CommandName == "edit")//if this condition was true , { Session.Remove("type"); Session.Add("taskReport_id",e.CommandArgument.ToString()); Response.Redirect("Default3.aspx#3"); } }
Page.ClientScript.RegisterStartupScript(Page.GetType(), "script", "window.location.href='Default3.aspx#3';", true);
ScriptManager.RegisterStartupScript(this, this.GetType(), "", "alert('your message');document.location.href='HTML5.aspx';", true);
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)