473,320 Members | 1,804 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

How do I form this ASP:Hyperlink object?

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.
Nov 18 '05 #1
1 1374
NavigateUrl= '<%# DataBinder.EvalContainer.DataItem, "ORDER_ID",
"http://localhost/virtualdirectory/thepage.aspx?item={0})" %>'
"jm" <jo*************@yahoo.com> wrote in message
news:c6**************************@posting.google.c om...
[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.

Nov 18 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Thubaiti | last post by:
Hi, I have this code: <td> <a href="#" class="toolbar">Computers</a> <a href="commun.html" class="toolbar">Communications</a> <a href="electronics.html" class="toolbar">Electronics</a> <a...
4
by: Amir Eshterayeh | last post by:
Dear Friends My asp hyperlink goes to relative address instead of absolute. I like navigate url goes to outsite link like www.asp.net but now, it goes to www.mysite/www.asp.net please help....
3
by: Aaron | last post by:
How do I do this? <asp:hyperlink style="Z-INDEX: 144; LEFT: 4px; POSITION: absolute; TOP: 119px" runat="server" Text="Click Me!" NavigateUrl="mailto://<% response.write(txtBEmail.Text.ToString)...
4
by: James P. | last post by:
Hello there, I have an asp hyperlink in a template page. In my user control page - code behind page that uses the template, I'd like to turn this link invisible in certain case. Is it...
5
by: Martin Dew | last post by:
Having some problems getting a hyperlink object to work in my repeater control, It displays the text I have asked it to for the hyperlink, but it does not act as a link. My repeater code is below...
9
by: Leon | last post by:
What Am I Doing Wrong? Code Will Not Run, I Can't See The Error! Thanks. <asp:datalist id="DataList1" runat="server" RepeatColumns="4"> <ItemTemplate> <asp:HyperLink id=HyperLink1 ImageUrl=...
4
by: Satya | last post by:
Hi all, The following code is throwing a run time error "The server tag is not well formed. " <ItemTemplate> <asp:HyperLink Runat="server" ID="lnkFile"...
9
by: dana lees | last post by:
Hello, I am using asp:HyperLink in a c# asp.net application to open a new window in the following way: <asp:HyperLink ID="lnkSiteName" runat="server" Text='<%# DataBinder.Eval(Container,...
2
by: nicknack | last post by:
Hello. I have an asp:hyperling in my page and I'm trying to make it "clicked" from my code behind. Is this possible? I also tried it with JS but its look like the hyperlink doesn't have a...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.