Solved

TextBoxWatermarkExtender

Posted on 2010-08-30
2
1,043 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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 does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

ASP.Net to Oracle Connectivity Recently I had to develop an ASP.NET application connecting to an Oracle database.As I am doing it first time ,I had to solve several problems. This article will help to such developers  to develop an ASP.NET client…
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.…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…
Suggested Courses

617 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