Asp.net pop-up prompt and jump Method 1 are displayed on the page:
Response. Write (I. tostring () + "<br> ");
2. the dialog box is displayed:
Page. registerstartupscript ("MSG", "<SCRIPT> alert ('" + _ INFO + "') <" + "/SCRIPT> ");
Response. Write ("<SCRIPT> alert ('" + _ INFO + "') <" + "/SCRIPT> ");
3. Jump back after prompting:
Response. Write ("<SCRIPT> alert ('registered successfully'); window. Location = '/employee/stulogsuccess. aspx'; <" + "/SCRIPT> ");
Note: This method cannot be returned using window. History. Back;
4. Direct jump:
Response. Redirect ("/employee/stulogsuccess. aspx", false );
5. Jump with JS:
Response. Write ("<SCRIPT> window. Location = '/employee/stulogsuccess. aspx'; <" + "/SCRIPT> ");
6. Jump with parameters:
Response. Redirect ("/controls/error. aspx? MSG = "+ server. urlencode (" failed to submit information. Contact the system administrator. "));