`

ClientScript.RegisterStartupScript使用说明二

    博客分类:
  • C#
阅读更多

ClientScript.RegisterStartupScript在UpdatePanel下不能使用,只能使用ScriptManager.RegisterClientScriptBlock(UpdatePanel1, UpdatePanel1.GetType(), "message", javaScript, true);这个方法,是因为ASP.NET2.0中AJAX使用新的ScriptManager 类来管理,而不兼容原来的 ClientScriptManager 类和Page.ClientScript.RegisterClientScriptBlock,这些方法都是无效的.

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics