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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Date Input Mask In Text Field

Status
Not open for further replies.

kaijanm

Programmer
May 14, 2003
102
US
Is there a way to put an input mask in a text field for a date or other things, sorta like in access? I'm converting our access front end over to an ASP.NET front end and I'm trying to make the transition as clean as possible.

Thanks for any help!
Kimberly
 
Two options:
1. use a regular expression validator
2. alter the user interface

Regular expressions can get messy, and you won't get the exact functionality as you would from Access (with the nice slanted lines and such)

However, another option would be to alter the UI to better suit a date entry: instead of one textbox for a whole date, have three drop down lists for day/month/year.

Or, you could also use the calandar control to force your users to select a date using that, and you can keep the textbox as read only (only gets assigned the value through code).

These are alternatives. to answer your question though, no, there's no way to get the textbox to act the way they do in Access.

D'Arcy
 
I was afraid you were going to say that. :)

Thanks for the input though! :)

Kimberly
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top