Click here to Skip to main content
15,892,005 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have a text box on my page.

how i can i add a mask for ID card number?
Posted

I'm assuming you mean an input mask. If so, I would recommend using a jQuery input mask like so:

http://www.emadmokhtar.com/2011/01/howto-use-jquery-input-mask-plugin-in-asp-net/[^]

If you really want to use an ASP.NET control to do the input mask for you, here is a possible solution for you:

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

I would recommnd against the second solution because it is heavier and not as clean as the jQuery method. jQuery is designed for client-side work, whereas ASP.NET is mainly server-side technology.

If you mean you don't want to show the characters that are being typed, you need to use the input type of password like so:

HTML
<input type="password" />
 
Share this answer
 
v2
Comments
prince_rumeel 6-Jun-12 9:23am    
bro i want to use input mask.
is there any control for it in asp.net

i dont wana use Jquery control
Tim Corey 6-Jun-12 9:28am    
I updated my submission for you. I included an ASP.NET control to do input masks.
fjdiewornncalwe 6-Jun-12 10:05am    
Nice. +5.
 
Share this answer
 
Comments
prince_rumeel 6-Jun-12 9:26am    
bro i already have been visited that links.

i already perform RND.

but i want some unique idea

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