General information
Title:
Programmatically access DetailsView
I have a DetailsView object on my ASP.Net webform. The DetailsView data source is a ObjectDataSource. The DetailsView object gets filled in correctly with the right record when the webform is displayed.
My question is, how can I programmatically access a value from a field in the DetailsView object?
For example, I try doing this:
String x = DetailsViewID.Fields[index].Text
But this just brings back the caption for the label assoicated with the index value. I need to get the data from the BoundField. How can I do this?
Thanks,
Jerry
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only