Hello all,
I have a form using a sqldatasource and detailsview. I have a couple of textboxes outsite of the DetailsView whose text values I would like to set from the SqlDatasource. How can I access this data and set these stray fields? Seems like the Detailsview component consumes the sqldatasource? Also, these two textboxes display (fields) data that is in the datasource but I elected not to display in the detailsview.
In the form load now, I run (Dataview)sqldatasource.select to get at the data for those stray fields now. But then the DetailsView is then running it again, so the database is being hit twice which seems a bit inefficient. :)
I would like to access the data something like text1,text = var[0]["username"].
Thanks
View Complete Post