ScriptManagerProxy控件的用法
转自:http://hi.baidu.com/honfei/blog/item/d636cf4ed16e160cb3de05fa.html
用户控件中用ajax,主页面中也要用ajax,但是ScriptManager一个页面中只能呈现一次(错误提示:Only one instance of a ScriptManager can be added to the page. ),现在就用到了ScriptManagerProxy。
解决方法:ScriptManager必须放在主页面中,把ScriptManagerProxy放在ascx中,而且主页面中的ScriptManager必须放在此ascx的上面(否则会出现The control with ID "ScriptManagerProxy1" requires a ScriptManager on the page. The ScriptManager must appear before any controls that need it.
本贴子以“现状”提供且没有任何担保,同时也没有授予任何权利
This posting is provided "AS IS" with no warranties, and confers no rights.
This posting is provided "AS IS" with no warranties, and confers no rights.
浙公网安备 33010602011771号