Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Using FindControl with a GridView
Message
 
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Titre:
Using FindControl with a GridView
Versions des environnements
Environment:
C# 2.0
Divers
Thread ID:
01216554
Message ID:
01216554
Vues:
75
I have a gridview with a HyperLink column - how can I convert this to a LinkButton?

Currently the URL from the hyperlink causes the page to reload different information in a separate section. I am converting this to a partial postback - for this to work I need to use a POST operation rather than a link.

The problem I have is how exactly do I detect the ID from the element in the grid as I no longer have a QueryString like ?id=1 to work with.

I have set up a CommandName on the button and hooked up the RowCommand event on the back end - but I can't see how to get the ID?
- Craig

"If you're not prepared to be wrong, you will never come up with anything original."
- Sir Ken Robinson
Répondre
Fil
Voir

Click here to load this message in the networking platform