janieeagle
New Member
I'm using Ajax in page which is under a masterpage.I have a problem with the location of the script manager. I don't want the script manager to be for all the pages, just for one.this is the master page :\[code\] <div> <asp:ContentPlaceHolder ID="ContentPlaceHolder1" runat="server"> </asp:ContentPlaceHolder> </div>\[/code\]and this is the page which I want to add the script manager to it\[code\]<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server"> <asp:ScriptManager ID="ScriptManager1" runat="server"> </asp:ScriptManager> <asp:TextBox ID="TextBox1" runat="server" Width="120"></asp:TextBox> <asp:NumericUpDownExtender ID="NumericUpDownExtender1" runat="server" TargetControlID="TextBox1" Maximum="9" Minimum="1" Width="120"> </asp:NumericUpDownExtender></asp:Content>\[/code\]When I run it this problem occuer:" Control 'ContentPlaceHolder1_ScriptManager1' of type 'ScriptManager' must be placed inside a form tag with runat=server."So I read on the internet that I have to put the content in the master page inside a form tag like this :\[code\] <div> <form id="form1" runat="server" style="height: 25px"> <asp:ContentPlaceHolder ID="ContentPlaceHolder1" runat="server"> </asp:ContentPlaceHolder> </form> </div>\[/code\]but when I do this another problem occures: "A page can have only one server-side Form tag."I have no Idea what to do, Thanks for the help