I have a problem when trying to validate data on insertion (and possibly update, didnt try it yet) .
I use a formview in insert mode, linking to a custom BLL that then link to a DAL to insert data into a table. The problem is the parameter data is changing between the Datasource inserting event and when the BLL insert method is called. 2 field, that cannot be null in the database, have default value added to them. Bot sure how to explain so well so 'ill post some picture explaining :
This is the form I use, I enter only test in the textbox for the value Nom
this is the trace for my DataSource_Inserting event, as you can see, only the "Nom" value is non-null
But then, right after the event is done and the call is made to the BLL, the value for "Sexe" and "DateDeNaissance" has been changed to some default value, namely 0 and Jan 1, year 1.
This of course is causing problem because if the user does not provide value for "Sexe" and "DateDeNaissance" then I want t
View Complete Post