Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Grid Events
Message
De
21/08/2004 21:44:54
Keith Payne
Technical Marketing Solutions
Floride, États-Unis
 
Information générale
Forum:
ASP.NET
Catégorie:
WebForms
Titre:
Divers
Thread ID:
00934916
Message ID:
00935248
Vues:
27
>Hi All,
>Sorry for my another newbie question...
>
>Can anyone explain to me which grid event is executed (if any) when I click on the Hyperlink column with the URL field property set to go to another .aspx page ?
>Basically what I am trying to do is to set a session variable based on the selection in the grid ...Ex:
>
>myVar = DataGrid.SelectedItem.Cells.Item(4).Text
>
>TIA
>Daniel Majtczak

Daniel,

Unfortunately, the Hyperlink server control responds to clicks the same way that an HTML hyperlink control does. It immediately redirects to the address in the target property.

If you want your grid to respond to click events, use a LinkButton control instead.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform