iam using liek this
protected void btnUpdate_Click(object sender, EventArgs e)
{
ScriptManager.RegisterStartupScript(this, this.GetType(), "Messagebox", "alert('Record Updated successfully.Note: This tab is now getting close');", true);
}
so how to close current webform after click messagebox ok button
so how to close current webform after click messagebox ok button


Manish Kumar ChoudharyRank #339 · 7.4K reputationPosted Mar 11, 2015, 2:39 AM EDT
Dawood AbbasRank #6,413 · 267 reputationPosted Mar 11, 2015, 2:42 AM EDT
Manish Kumar ChoudharyRank #339 · 7.4K reputationPosted Mar 11, 2015, 2:44 AM EDT
ClientScript.RegisterClientScriptBlock(Page.GetType(),
"script", "window.close();", true);
or
Go through this links it will help you
http://www.c-sharpcorner.com/Forums/Thread/206179/
Dawood AbbasRank #6,413 · 267 reputationPosted Mar 11, 2015, 2:50 AM EDT
Dawood AbbasRank #6,413 · 267 reputationPosted Mar 11, 2015, 2:55 AM EDT
Manish Kumar ChoudharyRank #339 · 7.4K reputationPosted Mar 11, 2015, 2:55 AM EDT
I think not possible. Use Response.Redirect to redirect to another page. And Disable browser back buttons.