dhj Posted January 20, 2004 Posted January 20, 2004 hi i need to validate a textbox which contaiins dates my condition is the textbox date should not be less than now +3 days for example say today is 20th of jan 2004 my textbox can only contain dates which are grather than 23rd 0f Jan 2004 does any one have an idea thx Quote
samsmithnz Posted January 20, 2004 Posted January 20, 2004 dim dteDateEntered as DateTime = ctype(txtMyTextBox.text, datetime) if dteDateEntered < now OR dteDateEntered > now.addDays(3) then 'This is an invalid date else 'This is a valid date end if Quote Thanks Sam http://www.samsmith.co.nz
dhj Posted January 20, 2004 Author Posted January 20, 2004 yes samsmithnz thank u for replying what u said was can do in the server side i need to do this in the client side can't i use something like fieldvalidators if so i need to know the syntx thanks Quote
AsifCh Posted January 20, 2004 Posted January 20, 2004 On the client side you have to use the Java Script To validate tje form. There is no such vaidator control available Quote Asif Raza Ashraf Senior Software Engineer Electronic Solutions Pakistan Islamabad
bungpeng Posted January 20, 2004 Posted January 20, 2004 You can use VBScript if your target users are using IE... Quote
samsmithnz Posted January 20, 2004 Posted January 20, 2004 yes samsmithnz thank u for replying what u said was can do in the server side i need to do this in the client side can't i use something like fieldvalidators if so i need to know the syntx thanks Sorry, but I didn't see you mention client side anywhere. Quote Thanks Sam http://www.samsmith.co.nz
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.