Click here to Skip to main content
14,428,366 members
Rate this:
Please Sign up or sign in to vote.
See more:
hello ,
after updating i used to refresh
Response.Redirect(Page.Request.RawUrl, false);
my current page, but after that my helper alert doesn't work now any solution..??
Posted

1 solution

Rate this:
Please Sign up or sign in to vote.

Solution 2

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:
ClientScript.RegisterStartupScript(this.GetType(), "SaveButton", "alert('Successfully updated.')", true); 
   

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




CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100