How to get Text from HyperLink in DataGrid?

  • Thread starter Thread starter Daily
  • Start date Start date
D

Daily

How to get text from clicked HyperLink in Datagrid?

and Is possible returning to another aspx file? how?
 
Daily said:
How to get text from clicked HyperLink in Datagrid?

I don't remeber exactly, but I think there is a property named
SelectedIndex. Then you have to do this:

string Text = ((HyperLink)
(dataGrid.Items[dataGrid.SelectedIndex].FindControl("myHyperLinkName")))
..Text;
and Is possible returning to another aspx file? how?

self.Response.Redirect("another.aspx");
Remember that the redirect parameter is relative to the dir your aspx
is in.
 
Back
Top