How do I form this ASP:Hyperlink object?

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,537
Members
45,023
Latest member
websitedesig25

Latest Threads

Top