views:

36

answers:

3

i am getting following error when i am running AJAX enabled ASP.Net application

The control with ID 'FilteredTextBoxExtender1' requires a ScriptManager on the page. The ScriptManager must appear before any controls that need it.

even though i have ScriptManager in my page

what wrong i am doing please give suggestions

thanks in advance

   <form id="form1" runat="server">
    <asp:scriptmanager id="ScriptManager1" runat="server" />
    <div>
        <cc1:filteredtextboxextender id="FilteredTextBoxExtender1" targetcontrolid="textbox1"
            filtertype="Numbers" runat="server">  </cc1:filteredtextboxextender>
        <asp:textbox id="TextBox1" runat="server"></asp:textbox>
    </div>
    </form>
A: 

You say "even though i have ScriptManager in my page" but did you also notice "must appear before any controls that need it" ?

Verify the order, the ScriptManager should be 1 of the first elements inside the <Form> tag.

Edit:

That TextBoxExtender is from the Ajax toolkit, that toolkit has its own ScripManager. Look in the Toolbox window.

Henk Holterman
yes i have kept scriptmanager before the control that needs <form id="form1" runat="server"> <asp:ScriptManager ID="ScriptManager1" runat="server" /> <div> <cc1:FilteredTextBoxExtender ID="FilteredTextBoxExtender1" TargetControlID="textbox1" FilterType="Numbers" runat="server"> </cc1:FilteredTextBoxExtender> <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox> </div> </form>
@user27 You can _Edit_ your question (and add and format code).
Henk Holterman
A: 

Place ScriptManager right before UpdatePanel

Ramesh Soni
A: 

what version of the toolkit? if latest, u need toolkitscriptmanager instead of "normal" scriptmanager

y34h
thanks y34h its working fine when i replaced my scriptmanager with toolkitscriptmanager thanks alot