Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Validation
Message
General information
Forum:
ASP.NET
Category:
Other
Title:
Miscellaneous
Thread ID:
00512505
Message ID:
00512616
Views:
7
>Hi All,
>
>I want to validate some text boxes in each asp page such as valid dates, integer , Not null values etc.
>Is there any way I can create one common validate asp for all asp pages so when ever I will want to validate any page I just pass the name of the control.
>
>Thanks,
>…ashish

Yes and No. Depends on what you are tring to do. If you want to do the validation on the client side and you can control what browser is being used, you can validate using either VBScript or JavaScript. You can have one procedure that validates the whole page, but that gets a little hard to maintain and debug if changes have to occur. If you are using ASP.net then you can develope a class with the validation built in but if you use VBscript it will mean a return trip to the server each time.

I think the more common way of doing dates is to make sure they can't enter an invalid date to begin with. You could look at http://www.truegeeks.com/asp/aspexamples/aspex1.ASP for an example of how we do this.

HTH
Jeff

It's Time to get a gun.

That's what I've been thinkin.

I think I can afford one, If I do a little less Drinkin.

www.TrueGeeks.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform