Click here to Skip to main content
15,922,894 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
hello,

i want to show a row updated message after rowupdating using javascript how to do it?
Posted

Try using

ScriptManager.RegisterStartupScript(Me, Page.GetType, "ShowInfo", "alert('Hello');", True)
 
Share this answer
 
if you are using updatepanel try below code

C#
ScriptManager.RegisterClientScriptBlock(this.UpdatePanel1, this.UpdatePanel1.GetType(), "Msg1", "alert('Saved');", true);


or

C#
Page.RegisterStartupScript("Alert", "<script>alert('Successfully Registered and now u can login')</script>");
                        Page.ClientScript.RegisterStartupScript(this.GetType(), "Alert", "alert('Upadted')", 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