System.Web.UI.Page.RegisterStartupScript(string, string)”已过时,用什么代替,该怎么解决
System.Web.UI.Page.RegisterStartupScript(string, string)”已过时,用什么代替
提示System.Web.UI.Page.RegisterStartupScript(string, string)”已过时,用什么代替
------解决方案--------------------
用ClientScriptManager代替,如:
string str = "SetColumnByCheckBox() ";
ClientScriptManager cs = Page.ClientScript;
cs.RegisterStartupScript(this.GetType(), " ", str, true);
------解决方案--------------------
asp2.0 用Page.ClientScript
提示System.Web.UI.Page.RegisterStartupScript(string, string)”已过时,用什么代替
------解决方案--------------------
用ClientScriptManager代替,如:
string str = "SetColumnByCheckBox() ";
ClientScriptManager cs = Page.ClientScript;
cs.RegisterStartupScript(this.GetType(), " ", str, true);
------解决方案--------------------
asp2.0 用Page.ClientScript