Quantcast
Channel: ASP.NET AJAX + Ajax Control Toolkit (ACT)
Viewing all articles
Browse latest Browse all 5678

Change date inside TextBox with TextBoxWatermarkExtender

$
0
0

Hi,

How can I change the date inside a TextBox with TextMode="Date" that uses a TextBoxWatermarkExtender?

I can't seem to do it from code behind:

<asp:TextBox ID="mailToDate" TextMode="Date" runat="server" Width="250px"></asp:TextBox>                                    <ajaxToolkit:TextBoxWatermarkExtender ID="mailToDate_WM" runat="server"                                        TargetControlID="mailToDate"                                        WatermarkText="Date"                                        WatermarkCssClass="watermarked" />
mailToDate.Enabled = true;                mailToDate_WM.Enabled = true;                mailToDate.Text = DateTime.Now.ToShortDateString();


Viewing all articles
Browse latest Browse all 5678

Trending Articles



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