Solved

TextBoxWatermarkExtender

Posted on 2010-08-30
2
1,039 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

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

IntroductionWhile developing web applications, a single page might contain many regions and each region might contain many number of controls with the capability to perform  postback. Many times you might need to perform some action on an ASP.NET po…
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, …
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.

777 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