Solved

TextBoxWatermarkExtender

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
How to LOAD up a .NET Framework website with data? 2 41
consuming an asmx web service in winforms application 3 24
Turn on intranet settings 1 39
Connection String 16 43
Introduction Got endorsements from your clients?  Great!  There is almost nothing better than word-of-mouth advertising.  But how can you do that on the internet?  Sure you can make a page for endorsement quotations and list them all, but who is …
Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
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 is used to tweak the memory usage for your computer, it is used for servers more so than workstations but just be careful editing registry settings as it may cause irreversible results. I hold no responsibility for anything you do to the regist…

911 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

21 Experts available now in Live!

Get 1:1 Help Now