Guys,
I'd like to add validation support to ASP.NET forms. There seem two approaches
a) Use LLBLGen validator classes and then call the validation logic from the server side ASP.NET page when the entity is saved.
b) Use ASP.NET validators to perform the validation.
a) Seems preferable because the validation is present at the business logic layer and therefore can ensure that any clients e.g. user interface / other business objects use the same consistent validation and avoid it being duplicated in many places.
If this is the best approach how would you recommend using the LLBLGen validator interfaces when managing the entities in ASP.NET e.g. when creating / updating the entities in the FormView.
Wouldn't it be useful to add another ASP.NET validator type control perhaps which could use the validator code in the LLBLGen entity and adapt this to the interface required for ASP.NET validators?
Cheers
Matt
Btw on another note if a) would be preferable why doesn't the HnD forum source code provide any validator classes?