Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

hi, I'm using Visual Basic as my l

Status
Not open for further replies.

sharonchapman7

Programmer
Aug 31, 2011
45
US
hi,
I'm using Visual Basic as my language with server side scripting. I have two fields, a date and phone field that I would like to put masks on? Can you tell me how I can do this or if it is possible?

Thanks,
Sharon
 
Hi

Is possible to set a format restriction in HTML5 using [tt]input[/tt]s of [tt]type[/tt] date and tel :
Code:
[b]<input[/b] [maroon]type[/maroon][teal]=[/teal][green][i]"date"[/i][/green][b]>[/b]
[b]<input[/b] [maroon]type[/maroon][teal]=[/teal][green][i]"tel"[/i][/green][b]>[/b]

For a mask edit like in desktop application you will need to use some JavaScript. For example the Masked Input Plugin for jQuery by Josh Bush.

Feherke.
[link feherke.github.com/][/url]
 
Sorry, I forgot to say I'm using asp server side scripting. Can this still be done?

Thanks for the quick reply.

Sharon
 
Hi

Sharon said:
Sorry, I forgot to say I'm using asp server side scripting. Can this still be done?
Irrelevant. User agents can not know what is on the server anyway, they not even know whether the data comes from a static file or a script's output.


Feherke.
[link feherke.github.com/][/url]
 
hi,
I have attached my code as attachments so that you can see what I'm dealing with. The first file Default_ASPX.txt is my html page and the second file, Default_aspx_vb.txt is my visual basic code that uploads the data entered to a SQL database. Could you give me more instruction after you look at my code. I tried to cut out all necessary coding to make it easier to find the date field and the phone (commercial) number.

Thanks,
Sharon
 
 http://www.mediafire.com/?s7pksc6x388pqsp,4k3pj21fvm52a44
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top