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
Post a Comment