>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
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement