James Cochrane
asked on
Open a new page using the Select hyperlink in a datagrid
I have a datagrid that contains information with a Select hyperlink for each row. How do I reprogram the Select hyperlink to open another form and load that particular record, i.e., it needs to get the column that contains the key and load the record into a FormView?
Thanks
Thanks
or
If e.Item.ID = "Select" Then
e.Item.Attributes.Add("onc lick", "window.open('AddTaskPopup .aspx')")
End If
If e.Item.ID = "Select" Then
e.Item.Attributes.Add("onc
End If
ASKER
Hi,
Thanks for that info. I am using C# and there is no ItemDataBound event in C#. There is a DataBound event but it doesn't seem to expose E.Item.FindControl.
Thanks for that info. I am using C# and there is no ItemDataBound event in C#. There is a DataBound event but it doesn't seem to expose E.Item.FindControl.
it's ItemDataBound
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Sorry,
I stated that I am using a DataGrid when I am actually using DataGridView. The DataGridView doesn't seem to support those properties.
Thanks
I stated that I am using a DataGrid when I am actually using DataGridView. The DataGridView doesn't seem to support those properties.
Thanks
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
If Not e.Item.FindControl("LinkBu
Dim lbtn As LinkButton
lbtn = e.Item.FindControl("LinkBu
If Not lbtn Is Nothing Then
lbtn.Attributes.Add("oncli
End If
End If