locked
Ajax Tookit controls behaviors not working RRS feed

  • Question

  • User-1399352090 posted

    Hai,

    Recenly i installed ajax tool kit 4.5 on 2012 visual studio.

    and i try to test sample textbox watermark extender.

    Register dll

    <%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>

    Inside Form

       <asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>
    <asp:TextBox ID="txtPhone" runat="server"></asp:TextBox>
       <asp:TextBoxWatermarkExtender ID="TextBoxWatermarkExtender1" TargetControlID="txtPhone" WatermarkText="000-00000" runat="server"></asp:TextBoxWatermarkExtender>
    <asp:TextBox ID="txtCal" runat="server"></asp:TextBox>
        
    <asp:CalendarExtender TargetControlID="txtCal" runat="server"></asp:CalendarExtender>

    while compile i'm not getting any errors, and i'm net getting even water mark  effects or calender effects on browser. any  tool kit controls not working

    Please Help.

    Thursday, May 1, 2014 5:05 AM

Answers

  • User1326971216 posted

    How to un-install AJAX Control Toolkit 

    http://forums.asp.net/t/1299354.aspx?How+to+un+install+AJAX+Control+Toolkit

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Friday, May 2, 2014 1:36 AM

All replies

  • User1326971216 posted

    If everything is right..

    Do one thing reinstall your ajaxtoolkit because sometime it's not properly install.So,this kind of problem occur..

    Reinstall It..

    Thursday, May 1, 2014 8:03 AM
  • User2103319870 posted

    Consider using ajax control ToolkitScriptManager instead of asp.net scriptManager.

    Change your code from

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

    to

    <asp:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server" ScriptMode="Release"
                CombineScripts="false">
            </asp:ToolkitScriptManager>

    Your Modifed Code:

     <asp:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server" ScriptMode="Release"
                CombineScripts="false">
            </asp:ToolkitScriptManager>
            PhoneNumber :
            <asp:TextBox ID="txtPhone" runat="server"></asp:TextBox>
            <asp:TextBoxWatermarkExtender ID="TextBoxWatermarkExtender1" TargetControlID="txtPhone"
                WatermarkText="000-00000" runat="server">
            </asp:TextBoxWatermarkExtender>
            <asp:TextBox ID="txtCal" runat="server"></asp:TextBox>
            <asp:CalendarExtender ID="CalendarExtender1" TargetControlID="txtCal" runat="server">
            </asp:CalendarExtender>

    Rendered Ouput:

    Thursday, May 1, 2014 8:04 AM
  • User-1399352090 posted

    Hi,

    How to remove and reinstall ?

    Thursday, May 1, 2014 8:47 AM
  • User-1399352090 posted

    Hi,

    I did with your code.but same issue :(

    Thursday, May 1, 2014 8:48 AM
  • User-1399352090 posted

    Consider using ajax control ToolkitScriptManager instead of asp.net scriptManager.
    Change your code from
      <asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>

    to

    <asp:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server" ScriptMode="Release"
                CombineScripts="false">
            </asp:ToolkitScriptManager>

    Your Modifed Code:

     <asp:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server" ScriptMode="Release"
                CombineScripts="false">
            </asp:ToolkitScriptManager>
            PhoneNumber :
            <asp:TextBox ID="txtPhone" runat="server"></asp:TextBox>
            <asp:TextBoxWatermarkExtender ID="TextBoxWatermarkExtender1" TargetControlID="txtPhone"
                WatermarkText="000-00000" runat="server">
            </asp:TextBoxWatermarkExtender>
            <asp:TextBox ID="txtCal" runat="server"></asp:TextBox>
            <asp:CalendarExtender ID="CalendarExtender1" TargetControlID="txtCal" runat="server">
            </asp:CalendarExtender>

    Rendered Ouput:

    I did as per your code, but nothing changed

    Thursday, May 1, 2014 8:49 AM
  • User1326971216 posted

    How to un-install AJAX Control Toolkit 

    http://forums.asp.net/t/1299354.aspx?How+to+un+install+AJAX+Control+Toolkit

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Friday, May 2, 2014 1:36 AM