Forum Moderators: open

Message Too Old, No Replies

ASP and COM Objects

         

athef

10:16 am on Apr 21, 2004 (gmt 0)

10+ Year Member



Hello,

When validating data entered into a form would it be better to validate the data within a COM object or on the actual ASP page? Or is it just dependant on the amount of code that is used for validation?

cheers.

aspdaddy

11:55 am on Apr 21, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



There are good reasons for doing so, but if youre not in the habbit of putting the business logic in COM objects, or the forms are not complex, it is surely overkill.

You will probably have to do some validation anyway i.e check for null values before passing data to the COM

One advantage is being able to seperate the validation rules from the scripting of the pages and modify the rules afterwards without changing the scripts.

athef

12:06 pm on Apr 21, 2004 (gmt 0)

10+ Year Member



thanks very much for that.