Sorry Russ, I didn't mean to imply that if we used your new if statement that empty <li> were showing up.
Just scratch what I said in my last post.
By the way, I know this has nothing to do with your great control adapter, but could you tell me if I am loosing my mind on this DetailsView issue.
If you don't include a field from the datasource in the DetailsView, the existing data in that field will be wiped out after you edit that row in the DetailsView when it is bound to an ObjectDataSource.
Example:
Table fields: First, Last, Address, Payrate
Table row values: Bob, Schmo, 123 Main, 125
Edit row in DetailsView
First: Bob changes to Robert
Last: Schmo
Address: 123 Main
Click Update
Table Row values: Robert, Schmo, 123 Main, 0
----------------------------------------
It seems the DetailsView ObjectDataSource is generating a new object, populating the object and sending it back with the MyBizObj.Update. Which would send the PayRate field back as 0.
Instead it should Get the object from the DB, populate it with the DetailsView fields and send it back to the DB.
This is very easy to Reproduce.
We ended up wiping out lots of data because a form we were giving to a user didn't include 4 or 5 fields of sensitive data. All of the sensitive data is now gone for the rows that she edited.
Thanks,
TPS
------------------------------------------------------
Note Collaboration for your next confernce call.
http://www.ConferenceCallNotes.com