Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Programmatically access DetailsView
Message
De
28/09/2006 11:34:29
Jerry Tovar
Dana Corporation Dana It
Maumee, Ohio, États-Unis
 
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Titre:
Programmatically access DetailsView
Versions des environnements
Environment:
ASP.NET
Divers
Thread ID:
01157869
Message ID:
01157869
Vues:
180
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
Répondre
Fil
Voir

Click here to load this message in the networking platform