日期:2014-05-19  浏览次数:20588 次

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