Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

TextBoxWatermarkExtender

Posted on 2010-08-30
2
Medium Priority
?
1,047 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

Vote for the Most Valuable Expert

It’s time to recognize experts that go above and beyond with helpful solutions and engagement on site. Choose from the top experts in the Hall of Fame or on the right rail of your favorite topic page. Look for the blue “Nominate” button on their profile to vote.

Question has a verified solution.

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

A quick way to get a menu to work on our website, is using the Menu control and assign it to a web.sitemap using SiteMapDataSource. Example of web.sitemap file: (CODE) Sample code to add to the page menu: (CODE) Running the application, we wi…
User art_snob (http://www.experts-exchange.com/M_6114203.html) encountered strange behavior of Android Web browser on his Mobile Web site. It took a while to find the true cause. It happens so, that the Android Web browser (at least up to OS ver. 2.…
Video by: ITPro.TV
In this episode Don builds upon the troubleshooting techniques by demonstrating how to properly monitor a vSphere deployment to detect problems before they occur. He begins the show using tools found within the vSphere suite as ends the show demonst…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an anti-spam), the admin…
Suggested Courses

877 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