Ok, I've discovered DataNavigateURL and have got it so close to working!
My code is:
Code:
<asp:HyperLinkColumn HeaderText="Name" Text="Name"
NavigateURL="view.aspx?Name={Name1}" DataNavigateUrlField="Name"
sortExpression="Name" ItemStyle-Wrap="false" />
And the Sub Name1 is
Code:
Sub Name1(s As Object, e As DataGridCommandEventArgs)
Response.Redirect("http://intranet/HomelinkApparel/Admin/
view.aspx?Name='" & Name & "'")
End Sub
and my DataGrid row shows:
[u]Name</u> 4486 1 AdultT Purple M
When you put your cursor over the 'Name' you will get the persons name with the almost complete URL.
I'm missing the actual page, the rest is there.
As in: "http://www.here.com/admin/JaneDoe" instead of "http://www.here.com/admin/view.aspx?JaneDoe"
What am I missing?
Thanks in advance.
Jackie