I'm using a TextBoxWatermarkExtender for username and password within a Login control.
I'd like to set the value of the watermark via the code behind, but I'm not sure this is possible? Remember this is within a Login control, so I'd need to use some form of find control??
RichardLaw
Member
464 Points
626 Posts
How to set TextBoxWatermarkExtender via code behind
Jan 01, 2013 04:26 PM|LINK
Hi
I'm using a TextBoxWatermarkExtender for username and password within a Login control.
I'd like to set the value of the watermark via the code behind, but I'm not sure this is possible? Remember this is within a Login control, so I'd need to use some form of find control??
Thanks as always
Song-Tian - ...
All-Star
43697 Points
4304 Posts
Microsoft
Re: How to set TextBoxWatermarkExtender via code behind
Jan 02, 2013 02:18 AM|LINK
Hi,
Yes, you could do that dynamically via codebehind. Any more question, please feel free to reply.
Feedback to us
Develop and promote your apps in Windows Store
chetan.sarod...
All-Star
65749 Points
11148 Posts
Re: How to set TextBoxWatermarkExtender via code behind
Jan 02, 2013 02:41 AM|LINK
WatermarkText- The text to show when the control has no value
http://www.asp.net/AJAX/AjaxControlToolkit/Samples/TextBoxWatermark/TextBoxWatermark.aspx
Senior Software Engineer,
Approva Systems Pvt Ltd, Pune, India.
RichardLaw
Member
464 Points
626 Posts
Re: How to set TextBoxWatermarkExtender via code behind
Jan 02, 2013 07:36 AM|LINK
Great, thanks. Can you show me?
I've tried a few ideas but can not get it to find the watermark control.
Many thanks