在项目中一个页面使用System.Web.UI.ScriptManager.RegisterStartupScript(this.Page, this.GetType(), "success", "alert('OK');", true);的时候发现没用,检查发现脚本没用注册到页面,check页面发现了问题,<form method="post"> 没用ruanat/<form id="form1" runat="server">,更详细的信息请参看MSDN关于这个方法参数的介绍
在项目中一个页面使用System.Web.UI.ScriptManager.RegisterStartupScript(this.Page, this.GetType(), "success", "alert('OK');", true);的时候发现没用,检查发现脚本没用注册到页面,check页面发现了问题,<form method="post"> 没用ruanat/<form id="form1" runat="server">,更详细的信息请参看MSDN关于这个方法参数的介绍