Quantcast
Channel: AjaxControlToolkit Work Item Rss Feed
Viewing all articles
Browse latest Browse all 4356

Created Issue: TextBoxWatermarkExtender: Specifying WatermarkCssClass makes CSS classes specified on the textbox ineffective [27309]

$
0
0
Sample code:

<asp:TextBox ID="UserName" runat="server" textmode="Email" CssClass="loginTextBox loginText marginTop20"></asp:TextBox>

<ajaxToolkit:TextBoxWatermarkExtender ID="TextBoxWatermarkExtender1" runat="server" TargetControlID="UserName" WatermarkText="Your email address as username" WatermarkCssClass="watermark" Enabled="True"></ajaxToolkit:TextBoxWatermarkExtender>

Problem:
The textbox "UserName" has CSS classes specified that sets the size of text, font, margin etc. When WatermarkCssClass is specified (watermark - makes the text color gray), the CSS classes specified on the textbox are rendered ineffective. It would have been better if it inherited CSS classes specified on the target control.

One Workaround that worked:
Add all the classes specified on the target control in the extender control as well.



Viewing all articles
Browse latest Browse all 4356

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>