Hi,
I have a detailsview that shows the details of a record.
The person viewing the page can update the details.
When they click update the record on screen inserts to a different table (to protect the original table) rather than updating.
I did this by automatically putting the detailsview into edit mode, hiding the cancel/update buttons and adding a button link that sets off the Insert method of the datasource that is bound to the detailsview.
The only trouble is that I am just getting NULLs inserted into the table.
My theory is that because the detailsview is in edit mode it is in some way ignoring the insert parameters.
Can any one confirm this or suggest any other reason?
I suspect that I am deviating to far off what the DetailsView is designed for and that as a consequence I am running into issues that are taking more time up than is being saved by using the details view.
Thanks
C
I have a detailsview that shows the details of a record.
The person viewing the page can update the details.
When they click update the record on screen inserts to a different table (to protect the original table) rather than updating.
I did this by automatically putting the detailsview into edit mode, hiding the cancel/update buttons and adding a button link that sets off the Insert method of the datasource that is bound to the detailsview.
The only trouble is that I am just getting NULLs inserted into the table.
My theory is that because the detailsview is in edit mode it is in some way ignoring the insert parameters.
Can any one confirm this or suggest any other reason?
I suspect that I am deviating to far off what the DetailsView is designed for and that as a consequence I am running into issues that are taking more time up than is being saved by using the details view.
Thanks
C