当前位置: 代码迷 >> ASP.NET >> ASP.NET Ajax 里如何调用JS函数
  详细解决方案

ASP.NET Ajax 里如何调用JS函数

热度:2195   发布时间:2013-02-25 00:00:00.0
ASP.NET Ajax 里怎么调用JS函数?
用C#写的Aspx页面,   用了Ajax,   能不能在一个事件中再调用客户端JS函数?
response.write( ' <script>   myJSFun(); </script> ')不行.

------解决方案--------------------------------------------------------
ScriptManager.RegisterStartupScript
------解决方案--------------------------------------------------------
Microsoft.Web.UI.ScriptManager.RegisterStartupScript(updatepanelname, this.GetType(), "a ", "scriptfunction or script statement ", true);
  相关解决方案