I am having two buttons update button and add button and i am using an object data source and form view to update and insert the data,
when i am adding a new record everything works fine,
but when i update and existing record and then try to insert a new record and give a username which already exists in the DB it return the appropriate error message but the data are lost which i enetered,it is not retained.
This is not happening when i add a record for the first time,that it before updating any record,
i think something is happening in update due to which after i add new records the data are not retained in the form view?
after doing update when i call add new it is calling the method formview_rowdatabound which is i think clearing all the values,I cant figure out why it is called formview_rowdatabound??
vikash12
0 Points
4 Posts
Formview and ObjectDataSource Error
Nov 02, 2012 09:36 AM|LINK
Hi all,
I am having two buttons update button and add button and i am using an object data source and form view to update and insert the data,
when i am adding a new record everything works fine,
but when i update and existing record and then try to insert a new record and give a username which already exists in the DB it return the appropriate error message but the data are lost which i enetered,it is not retained.
This is not happening when i add a record for the first time,that it before updating any record,
i think something is happening in update due to which after i add new records the data are not retained in the form view?
can any 1 help?
vikash12
0 Points
4 Posts
Re: Formview and ObjectDataSource Error
Nov 02, 2012 09:38 AM|LINK
after doing update when i call add new it is calling the method formview_rowdatabound which is i think clearing all the values,I cant figure out why it is called formview_rowdatabound??
Decker Dong ...
All-Star
118619 Points
18779 Posts
Re: Formview and ObjectDataSource Error
Nov 03, 2012 01:00 AM|LINK
Hello,
Can you show us your full codes?