Designed a form for loading a single record from a db via business object ( let's call it bo). The business object is initialized during Page_Load and returns a DataView object (named Person) which is used to bound to form controls. Init code as follows:
CBusObj bo = new CBusObj(System.Convert.ToInt32(Session["CurrentID"]));
Controls are bound to the DataView using DataBinder.Eval syntax and show selected data properly. No need of any grid, list, repeater and so on. Binding code as follows:
text='<%# DataBinder.Eval(bo.Person, ".Email1")%>'
After hitting a "save" button
- no changes to the controls are available (e.g. textboxes)
- selectedvalue properties of dropdowns aren't properly stored
- no changes can be submitted to the db
The only statement in the "save button Click event is
Can't find a way out of it - any help would be highly appreciated. Thanks in advance and Merry Christmas to all!