detailsview missing data after unsucceded insert
Posted on 2007-10-18
I have a DetailsView in insert-mode, this contains some text-boxes with validation and a button with insert-commandname - when i click the button (and validation passes) my InsertMethod of my objectdatasource is fired.
My BLL do also have some validation and if this validation is passed everything is good - but if the validation fails I get a problem. If the BLL-validation fails i catch this up in the Inserted-event of my objectdatasource and gives the user an error-message... but the data filled in the detailsview is gone, not because of missing viewstate I guess but probably because it thinks everything in the insert-method was going well.
How can I catch up the BLL error and keep the userinput in the detailsview?