• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1049
  • Last Modified:


I jsut installed AjaxToolKit.

I applied the the control to a textbox but when I run the page the watermark does not show.

What am I doing wrong?  Thanks.

<form id="form1" runat="server">
    <asp:scriptmanager ID="Scriptmanager1" runat="server"></asp:scriptmanager>

                        <asp:TextBoxWatermarkExtender ID="tweSpouseAddr" WatermarkText="Address" runat="server" TargetControlID="spouseAddr" WatermarkCssClass="watermarked">
                    <asp:TextBox ID="spouseAddr" runat="server" Width="491px"></asp:TextBox>


Open in new window

1 Solution
two things,
First try writing the asp:TextBoxWatermarkExtender  after the actual textbox.
second make sure the css gets applied to the extender
IsaacSharePoint Client Side DeveloperAuthor Commented:
I figured out the problem.

 I had the AJAX Extension ScriptManager tag in the code instead of the Ajax Toolkit ToolScriptManager.

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

instead of this

    <asp:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server">

I still have no idea of why the first one did not work.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now