Hi!
In Post 10543, Nick wrote: "You may also want to have an Inserting event handler for your
DataSource to stitch up entities (but don't validate in there, that
should only be done using validation controls in the UI and in the
Business Logic Layer)." And in another post, Robert told me to add my custom processors in the Service App_code folder. Now, I am wondering where to hook-up my validators and processors in a web context.
In post 17117, Robert showed the following code where o is simply an Order object:
///calling
IsValid or Validate() will trigger the validation to occur.
///Error property is a newline
delimeted list of your broken rules.
if (!o.IsValid)
lblMessage.Text = o.Error;
In a web context with aspx pages and code-behind, in what event is it best to place such code?
Cheers!
JF