How do I form this ASP:Hyperlink object?

  • Thread starter Thread starter jm
  • Start date Start date
J

jm

[snippet from datagrid]
<td>

<asp:HyperLink id="ORDER_ID" NavigateUrl= '<%#
DataBinder.EvalContainer.DataItem, "ORDER_ID")%>' runat="server">

<%# DataBinder.Eval(Container.DataItem, "ORDER_ID") %>

</asp:HyperLink>

</td>

I can get the database item to show up in the link, but of course
that's it here. I want to put a real link like:

NavigateURL=http://localhost/virtualdirectory/thepage.aspx?item=THE_DATABASE_ITEM

but if I form the object this way I get a string, not a link with the
database item.

I need a link with the database item. If you can help, it is
appreciated. Thank you.
 
Back
Top