开发者

Where should i place the scriptmanager

开发者 https://www.devze.com 2022-12-24 02:07 出处:网络
I am planning to rebuilding the code of one asp.net project to another asp.net project. but i am stuck some where ...

I am planning to rebuilding the code of one asp.net project to another asp.net project.

but i am stuck some where ...

I drag and dropped the master page and the views (4 nos) into the master page.

now i need to drop scriptmanager.. where should i need to drag and drop this?

  • inside the multiview
  • outside the multiview
  • inside view? if 开发者_如何学Goso which view ? view 1 ? view 2? view 3? view 4?

What actually the script manager do ?


Thomas answer is correct, I'd like to add, to be more specific that placing the ScriptManager right below the Master's page Form tag is the best place:

<form id="form1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server" />


I would put the ScriptManager at the top of the Master page outside of any Multi-View. The ScriptManager is a what is used by the Microsoft controls to provide AJAX functionality.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号