Solved

TextBoxWatermarkExtender

Posted on 2010-08-30
2
1,037 Views
Last Modified: 2012-05-10
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:TextBoxWatermarkExtender>

                    <asp:TextBox ID="spouseAddr" runat="server" Width="491px"></asp:TextBox>



</form>

Open in new window

0
Comment
Question by:Isaac
2 Comments
 
LVL 7

Expert Comment

by:urir10
ID: 33562396
two things,
First try writing the asp:TextBoxWatermarkExtender  after the actual textbox.
second make sure the css gets applied to the extender
0
 
LVL 5

Accepted Solution

by:
Isaac earned 0 total points
ID: 33566543
I figured out the problem.

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

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

instead of this

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

I still have no idea of why the first one did not work.
0

Featured Post

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

The Confluence of Individual Knowledge and the Collective Intelligence At this writing (summer 2013) the term API (http://dictionary.reference.com/browse/API?s=t) has made its way into the popular lexicon of the English language.  A few years ago, …
OverviewThis article demonstrates a simple search form using AJAX. The purpose of the article is to demonstrate how to use the same code to render a page and javascript (JQuery) and AJAX to make subsequent calls to refine the results. The princip…
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…

708 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now