DetailsView only returning empty strings when "Insert"
Posted on 2007-10-14
I have a fairly complex solution in order to combine modalpopup with tabs and updatepanels, as well as the usual gridview and detailsview. The setup at a glance:
- gridview allowing for deletion and editing, wrapped in a updatepanel.
- modalpopup which is invoked when editing a row in gridview, it contains:
* a detailsview which uses an objectDataSource to get the editable data.
* the detailview consist of a templateField with a two tabs in a TabContainer, allowing for more fields to be edited in a limited space. Both tabs are wrapped with an updatePanel.
When I push the "Save"-button in my detailsView everything seems fine since the modalPopup closes and the gridview updates itself. But, the new row does not contain any data. Every string passed by my detailsView is emtpy.
Do you know of any solutions?
Since it worked until I added the two tabs and their updatePanels (only used the regular detailsView), I am suspecting that the name of my fields are to complex and eventually hidden for my objectDataSource which is supposed to pass them on.
//normally the fields would have been visible here, but I am adding:
//now my fields arrive here...
Perhapse this is getting to difficult for the ObjectDataSource:
<Parameter Name="myField" ...>
Just a thought...
Hopefully you might see the proper solution.