I\'m using vs 2010. I need to display the message to user and redirect the page.
I use the below line.
ScriptManager.RegisterStartupScript(this, this
Your Asking for a redirect page, below is an example of a redirect:
string page = "Login.aspx"; string myStringVariable = "Password Update!"; ClientScript.RegisterStartupScript(this.GetType(), "myalert", "alert('" + myStringVariable + "');Response.Redirect('"+ page +"' );", true);