Update record vs Required Field Validation
I have an aspx page that has both a GridView and a DetailsView on the same page.
In the DetailsView I have a Required Field Validator for a Template Field control and it works just fine.
However, in the GridView, if I try and Update the same field (name) of a previously entered record and then click on the Update link, the Required Field Validator in the DetailsView "kicks in" indicating that I have left the control in the DetailsView blank. In this case I am not try to add a new record, but merely trying to edit an existing one.
Needless to say, the Update fails.
Once I removed the Required Field Validator in the DetailsView for the control, the Update worked just fine.
Can't I have both?
Thanks you,
Cliff
|