Click here to Skip to main content
14,733,890 members
Please Sign up or sign in to vote.
3.00/5 (1 vote)
See more:
hi how can I define mask for textbox in asp.net/c#?
lke --/--/-- and -.-.-

thanls
Posted
Comments
Sergey Alexandrovich Kryukov 30-Jul-12 15:38pm
   
What kind of control do you use?
--SA
veusk 30-Jul-12 16:29pm
   
text box

There is a number of masked text box controls, complete with source code and detailed description.

First of all, look at the one from ASP.NET Ajax Control Toolkit:
http://www.asp.net/ajaxLibrary/AjaxControlToolkitSampleSite/MaskedEdit/MaskedEdit.aspx[^].

Or this:
http://www.asp.net/community/control-gallery/Item.aspx?i=880[^].

To find more, see also:
http://bit.ly/T17Nt2[^].

—SA
   
Comments
Sandeep Mewara 31-Jul-12 14:46pm
   
My 5! Good suggestions.
Sergey Alexandrovich Kryukov 31-Jul-12 15:08pm
   
Thank you, Sandeep.
--SA
Have a look at this too: Enhanced Textbox Control[^]
   

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900