日期:2014-05-18  浏览次数:20384 次

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);