1.clientscript.registerstartupscript (GetType (), "message", "<script>alert (' The first way, no white screen! ');</script> ");
2.httpcontext.current.response.write ("<script>alert (' The second way, there white screen! ') </script> ");
3.public static void Show (System.Web.UI.Page Page, String msg)
{
Page. Clientscript.registerstartupscript (page. GetType (), "message", "<script language= ' JavaScript ' Defer>alert ('" + MSG. ToString () + "');</script>");
}
Show (This, "The third Way, no white screen, no distortion! ");
4.response.write ("<script>alert (' Fourth Way, there white screen! ') </script> ");
5.window.showmodaldialog (' xxx.aspx ', ', ' Dialogwidth:429px;dialogheight:200px;location:no,menubar:no,toolbar:no , Status:no ');
6.page.clientscript.registerstartupscript (This.gettype (), "", "<script>window.open ('. /issue/issueallcomment.aspx ');</script> ");
can be resolved.
7.
The functions that use AJAX components are as follows:
System.Web.UI.ScriptManager.RegisterStartupScript (this, this.) GetType (), "Opennewwindow", "alert (' Pop-up box content! '); ", true);
8.
Place a control on the last line of the body of the page and assign a value to the control in the code page, such as:
Label. text= "<script>alert (' pop-up box content! ); </script> ";