Home All Groups Group Topic Archive Search About

Input/Display Masks C#

Author
13 Oct 2006 2:39 PM
JP
Using Framework 2.0, 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
17 Oct 2006 11:50 PM
Bryan Phillips
We use Infragistics' NetAdvantage suite.  The controls are fairly
inexpensive and work well together.  They have a number of masked
controls that you can use.  You can also download full evals from their
website.

Bryan Phillips
MCSD, MCDBA, MCSE
Blog:  http://bphillips76.spaces.live.com




Show quote
"JP" <J*@discussions.microsoft.com> wrote in message
news:EE0D1530-AEEC-4EC1-9A3E-37479FD767CF@microsoft.com:

> Using Framework 2.0, 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

AddThis Social Bookmark Button