D Daily Oct 24, 2003 #1 How to get text from clicked HyperLink in Datagrid? and Is possible returning to another aspx file? how?
How to get text from clicked HyperLink in Datagrid? and Is possible returning to another aspx file? how?
C Christina Androne Oct 24, 2003 #2 Daily said: How to get text from clicked HyperLink in Datagrid? Click to expand... 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? Click to expand... self.Response.Redirect("another.aspx"); Remember that the redirect parameter is relative to the dir your aspx is in.
Daily said: How to get text from clicked HyperLink in Datagrid? Click to expand... 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? Click to expand... self.Response.Redirect("another.aspx"); Remember that the redirect parameter is relative to the dir your aspx is in.