Hi,
I have a situation in my ASP application, where the ASPDataSource (or rather the AdapterManager) may discover a problem with the data being inserted. I can not discover this problem with validators, because it is a rather complex calculation involving other data in the database. The checks have been build into the model.
My problem is how I inform the user about the problem. Is there a way that I can have the AdapterManager tell the ASPDataSource that there is a problem, and have the datasource show a messagebox or something similar?
The apllication uses an ASP FormView to hold the controls, and I have considered to have the FormViews OnItemInserting event actually copy the data to an Entity and perform the test, but I find that a very messy solution as it mixes UI with datamanipulation, so I would much rather have the ASPDataSource (or AdapterManager) report back somehow.
Any help appriciated.
Best regards
Jesper Carstensen