Sunday 22 May 2022

How to get alert message before redirect a page

In this article, I will explain how to display JavaScript alert message box and the redirect to another page or website when "OK" Button is clicked.


ScriptManager.RegisterStartupScript(this, GetType(), "alertMessage", "alert('User details saved sucessfully');window.location = 'anotherpage.aspx'; ", true);

No comments:

Post a Comment