Jean
|
| Posted: 07/03/2002, 12:35 AM |
|
Hi,
I am coding in C# ASP, on client side, I am looking for sample code on how
to setup an edit mask on my phone and SSN fields.
Thanks
Jean
|
|
|
 |
Sanddy
|
| Posted: 07/03/2002, 2:13 AM |
|
Jean,
I haven't seen edit masks for Web Pages.. usually edit masks are used in
Windows based applications.
In web based applications we use normal Text fields and then validate them
on client-side if necessay. This is due to the fact that even though you are
using a rich programming language on the server side i.e. C# .. on the
client-side ultimately plain HTML content is delivered.
And I know of no HTML tag that supports input masks.
Although there might be a way using JavaScripts/DHTML, you can add your
masks... In C# you could use the same JavaScript rendered to the page to
create a mask for your field.
If you have some example of this live online (any language) .. let me know
...
Regards,
Sanddy
|
|
|
 |
Alexey Alexapolsky
|
| Posted: 07/05/2002, 7:22 AM |
|
Sanddy is right. You could do it via javascript , one of it's strenghts is
form validation. There should be enough js mask examples in the net.
--
Alex
CodeCharge Developer
"Jean" <jhsi@attbi.com> wrote in message
news:afu9gd$7t8$1@news.codecharge.com...
> Hi,
>
> I am coding in C# ASP, on client side, I am looking for sample code on how
> to setup an edit mask on my phone and SSN fields.
>
> Thanks
>
> Jean
>
>
|
|
|
 |
Mike Loffland
|
| Posted: 07/08/2002, 1:46 PM |
|
If all of your website users are using IE 4.0+ you can just reference the
intrinsic VB mask edit object as follows in place of the standard HTML input
text box.
DATE:
<OBJECT VIEWASTEXT id="answer"
classid="clsid:C932BA85-4374-101B-A56C-00AA003668DC"
style="height:25"><PARAM NAME="Mask" VALUE="##-##-####">
<PARAM NAME="PromptChar" VALUE="#">
</OBJECT>
SSN:
<OBJECT VIEWASTEXT id="answer"
classid="clsid:C932BA85-4374-101B-A56C-00AA003668DC"
style="height:25"><PARAM NAME="Mask" VALUE="###-##-####">
<PARAM NAME="PromptChar" VALUE="#">
</OBJECT>
As mentioned, this works only in IE 4.0+ browsers.
Mike Loffland http://www.motoregg.com
"Jean" <jhsi@attbi.com> wrote in message
news:afu9gd$7t8$1@news.codecharge.com...
> Hi,
>
> I am coding in C# ASP, on client side, I am looking for sample code on how
> to setup an edit mask on my phone and SSN fields.
>
> Thanks
>
> Jean
>
>
|
|
|
 |
|