There are many cases where you need a code to redirect your .aspx page to another page automatically after few seconds but code is to be done on server side rather than javascript .Here is the code with example.
lblerror.Text = "Password Changed Succesfully. You Will Be Redirected To Login Page in 5 seconds";
Response.AddHeader("REFRESH", "5;URL=Login.aspx");
Done :)
lblerror.Text = "Password Changed Succesfully. You Will Be Redirected To Login Page in 5 seconds";
Response.AddHeader("REFRESH", "5;URL=Login.aspx");
Done :)
Comments
Post a Comment