Wrox Home  
Search P2P Archive for: Go

  Return to Index  

aspx_professional thread: Range Validate a DateTime textbox


Message #1 by "Sean Marchiafava" <smarch@c...> on Sat, 17 Aug 2002 00:48:20
Well sean... U can have 2 validating control.... In one take the date 
value and check.. ad in the other check the timeStamp..but this time stamp 
validator should be enabled only when the date is same... 

Check this ...if problem still persists then mail me
keep me posted cheers

S.Ramanujam
Programmer Analyst
38 & 39 Whites Road,
WCB - Whites Road Circular Building
Royapettah, Chennai - 600014
Ph : +xx xx xxx xxxx Extn 5113 [Off]
   : +xx xx xxx xxxx           [Res]




> I can't seem to figure out how to apply a Range Validator to a textbox 
t> hat contains a datetime value.

> ex. "08/16/2002 6:34:00 PM"

> The enumerations for data types for the Range Validator control include 
s> tring,integer,double,date but no datetime. If I don't assign the type 
a> nd let it default to string it will only validate the date portion and 
i> gnores the time.  If I try and assign "Date" as the data type it throws 
a> n error that it can't convert the value to "Date".

> Has anyone run into a similar problem?  Can I use a custom validator and 
c> omplete this task?  

> Thanks,
S> ean

  Return to Index