c# - Redirect on button click in alert-dialog -


i show alert box @ end of code insert operation complete. there easy way show kind of alert box says "inserted successfully" , shows ok-button. click on "ok" should redirect specific page.

the code i'm using:

scriptmanager.registerclientscriptblock(this, this.gettype(), "alertmessage", "alert('inserted successfully')", true); 

clientscript.registerstartupscript(typeof(page), "alertmessage",   "<script type='text/javascript'>alert('inserted successfully');window.location.replace('http://stackoverflow.com');</script>"); 

Comments

Popular posts from this blog

c++ - Function signature as a function template parameter -

algorithm - What are some ways to combine a number of (potentially incompatible) sorted sub-sets of a total set into a (partial) ordering of the total set? -

How to call a javascript function after the page loads with a chrome extension? -