Input/Display Masks??

G

Guest

Is there a method for Masks to be used in C# web application? I found
documentation on MaskedProviders but I can’t find any detailed examples of
how it’s implemented. On top of that I think it’s just for client based win
forms and not ASP.

Basically, the user needs to be able to free type a date , phone, or
whatever the case may be 1102006 and either on lost focus in the control I
want to redisplay with mask or before saving to the database I want to mask
it as 11/10/2006.

I would hope that a mask property of some sort would help me here so I
wouldn’t have to write a bunch of tedious string manipulation code.

Any ideas?
 
G

Gaurav Vaish \(www.EdujiniOnline.com\)

documentation on MaskedProviders but I can't find any detailed examples of
how it's implemented. On top of that I think it's just for client based
win

MaskedProviders for ASP.Net? I don't think they exist yet

You'll need to write javascript that will be in action on "onchange"
(client-side, javascript) of the textbox (input type=text). It should be
easy to write... if you want to have a "generic arch" for masked
providers... have a look at NetAdvantage to get a clue on how it can be
built.


--
Happy Hacking,
Gaurav Vaish | www.mastergaurav.com
www.edujinionline.com
http://eduzine.edujinionline.com
-----------------------------------------
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top