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

Perl - how to grep a block of text from a file -

delphi - How to remove all the grips on a coolbar if I have several coolbands? -

javascript - Animating array of divs; only the final element is modified -