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?
What actually the script manager do ?
ScriptManager is a server-side control that sits on your Web Form and enables the core of ASP.NET AJAX. Its primary role is the arbitration of all other ASP.NET AJAX controls on the Web Form and the addition of the right scripting libraries to the Web browser so that the client portion of ASP.NET AJAX can function.
The ScriptManagerProxy works in a similar fashion as the ScriptManager control. You can have multiple ScriptManagerProxy item in a page. This helps you to add custom scripts or a Webservice proxy only when needed.
A page can contain only one ScriptManager control in its hierarchy.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With