I want to show a message “Successfully added” after saving the record to the database on button click which already having a JS function for some validation on the data.
i have tried the following code but nothing is showing.
ScriptManager.RegisterStartupScript(this, typeof(Page), "Alert",
"<script>alert('" + "Successfully added" + "');</script>", false);
How to show the success message in a popup with at the end save process?
Use
Response.Write("<script>alert('Successfully added');</script>");on button code behind.