C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Communities   Interview   Jobs   Projects   Offshore Development    
Silverlight Tutorials | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Revenue Sharing |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...

New Feature: Community Sites: Create your own .NET community website and start earning from Google AdSense ! It's Free !






How to Use TextBoxWatermarkExtender


Posted Date: 20 Jun 2008    Resource Type: Code Snippets    Category: AJAX
Author: Kapil DhawanMember Level: Gold    
Rating: Points: 5



The code sample uses AJAX toolkit's TextBoxWatermarkExtender control to watermark a textbox.

The code sets the text to be rendered as watermark with the control's WatermarkText property. Another textbox is also used in the example to show the difference between a watermarked textbox and an ordinary one.


<ajaxToolkit:TextBoxWatermarkExtender ID="TextBoxWatermarkExtender1" runat="server"
TargetControlID="txtOrderNo"
WatermarkText="Order No."
WatermarkCssClass="watermarked"/>

<asp:TextBox runat="server" width="100px" cssclass="unwatermarked" MaxLength="8" id="txtOrderNo"/>





Responses


No responses found. Be the first to respond and make money from revenue sharing program.

Feedbacks      
Popular Tags   What are tags ?   Search Tags  
Watermark a textbox with TextBoxWatermarkExtender  .  Using TextBoxWatermarkExtender  .  TextBoxWatermarkExtender control  .  How to use TextBoxWatermarkExtender  .  

Post Feedback


This is a strictly moderated forum. Only approved messages will appear in the site. Please use 'Spell Check' in Google toolbar before you submit.
You must Sign In to post a response.
Next Resource: Pop up a Message box in an Update Panel
Previous Resource: Length of a String in JavaScript
Return to Discussion Resource Index
Post New Resource
Category: AJAX


Post resources and earn money!
 
Related Resources



dotNet Slackers   BizTalk Adaptors    Web Design


Contact Us    Privacy Policy    Terms Of Use