Click here to Skip to main content
15,896,063 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
hello ,
after updating i used to refresh
C#
Response.Redirect(Page.Request.RawUrl, false);
my current page, but after that my helper alert doesn't work now any solution..??
Posted

1 solution

You should first display the alert message then to redirect.

So in your SaveButton_Click() method, that handle the Save button, before to redirect you should invoke the alert message by using Javascript like in the next example:
C#
ClientScript.RegisterStartupScript(this.GetType(), "SaveButton", "alert('Successfully updated.')", true); 
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900