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

Winapi c++: DialogBox hangs when breaking a loop -

vb.net - Font adding using PDFsharp -

javascript - jQuery iScroll clickable list elements while retaining scroll? -