Home All Groups Group Topic Archive Search About

Input/Display Masks??

Author
13 Oct 2006 2:37 PM
JP
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?

--
JP
..NET Software Developer

Author
14 Oct 2006 2:52 AM
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
-----------------------------------------

AddThis Social Bookmark Button