Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Programmatically access DetailsView
Message
From
28/09/2006 11:34:29
Jerry Tovar
Dana Corporation Dana It
Maumee, Ohio, United States
 
 
To
All
General information
Forum:
ASP.NET
Category:
Other
Title:
Programmatically access DetailsView
Environment versions
Environment:
ASP.NET
Miscellaneous
Thread ID:
01157869
Message ID:
01157869
Views:
179
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
Map
View

Click here to load this message in the networking platform