String scriptStr
= "<script language='javascript'
type='text/javascript'>";
scriptStr += "alert('Hi');";
scriptStr += "window.location = '";
scriptStr += "google.com";
scriptStr += "'";
scriptStr += "</script>";
this.Page.ClientScript.RegisterStartupScript(this.GetType(), "AlertMessage",
scriptStr);
RegisterStartupScript("save", "<script type=\"text/javascript\"> alert('Save successfully'); window. location. href = "your url"; </script>"); in above code is execute and display message and go to another page..
ReplyDeleteangry gran