i have registerd ajax toolkit
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
and i have all ajax tools in my toolbox . i have a script manager .
i dragged a textboxwaermark on form .
WatermarkText="Type First Name Here"
WatermarkCssClass="watermarked" />
till now every thing seems ok
but this tbwatermark not working . there is no error, no exception.
then why ?????
some one suggest pls . i am finding it for last 2 days.
thanks in advance
Blocked AccountPosted Aug 11, 2010, 6:15 AM
WHich ajax version you are using?
if you are using ajax 3.5 then you have to use toolkitscript manager instead of script manager.
Madhu KPosted Aug 11, 2010, 6:07 AM
.watermarked {
background-color:#F0F8FF;
border:1px solid #BEBEBE;
color:gray;
height:20px;
padding:2px 0 0 2px;
width:150px;
}
Posted Aug 11, 2010, 6:04 AM
Posted Aug 11, 2010, 6:02 AM
and i removed the watermark css class but still not working an
any other suggestion pls
Madhu KPosted Aug 11, 2010, 6:00 AM
TextBox Watermark
what problem are you facing?? are you not getting the watermark appearance on textbox??
Blocked AccountPosted Aug 11, 2010, 5:56 AM
two suggestions
1. First check your CSS named "watermarked"
2. WaterMarkExtender doesn't work with RequireFieldValidator, If you are using RequireFieldValidator then you have to use AjaxCallOutExtender also.
like this
<asp:TextBox ID="txtUSERID" runat="server" MaxLength="50" Width="120px" >asp:TextBox>
<ajaxToolkit:TextBoxWatermarkExtender ID="TextBoxWatermarkExtendertxtPWD" runat="server"
TargetControlID="txtUSERID" WatermarkText="Enter UserID">
ajaxToolkit:TextBoxWatermarkExtender>
<asp:RequiredFieldValidator ID="RequiredFieldValidatorUSerID" runat="server" ControlToValidate="txtUSERID"
Display="None" EnableViewState="False" >asp:RequiredFieldValidator>
<ajaxToolkit:ValidatorCalloutExtender ID="ValidatorCalloutExtender1" runat="server" TargetControlID="RequiredFieldValidatorUSerID" />
you can change ValidatorCalloutExtender property according to your need.