473,513 Members | 2,595 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Pls Help: Hyperlink containing Container.DataItem not working

I have this hyperlink in a datalist that is supposed to automatically
include the current "ListingId" field in the hyperlink navigateurl.

<asp:HyperLink id="hlView" runat="server" Font-Bold="True"
NavigateUrl='SearchDetails.aspx?ListingId=<%#Conta iner.DataItem("ListingId")%>'>View</asp:HyperLink>&nbsp;

It ALMOST works, but this is the link it's producing..

SearchDetails.aspx?ListingId=<%#Container.DataItem ("ListingId")%>

It's NOT substituting the data. I've verified that the query IS returning
valid data.

Any ideas?

Thanks in advance!
Nov 19 '05 #1
0 994

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

Similar topics

1
2567
by: Wayne Wengert | last post by:
I want to use the contents of one field to be the text the user clicks on for a hyperlink in a datagrid. I am trying the following code but it does not work. What is the correct syntax for this?...
0
550
by: Ryan Harvey | last post by:
Hi all, I have written a web user control that contains a repeater control. the ItemTemplate for this control is basically 6 Hyperlinks in a row, that are dynamically allocated one of 7 gif...
2
2600
by: BobRoyAce | last post by:
I am brand new to ASP.NET and am now required to take over maintenance of a ..NET/C# web application. On one of the pages I'm working on there is a DataGrid which has multiple columns. One of the...
4
1164
by: Chris | last post by:
I've tried several posting examples to no avail. I'm trying to pass two parameters to the hyperlink inside of the grid. I've gone to this link that was posted, and besides the typo (missing '>') I...
2
2225
by: LmcE | last post by:
Hi, I have created a datagrid with a template column containing a datalist. However, I need the text within the datalist to display as a hyperlink. Eack of the links will point to another form...
1
2629
by: tshad | last post by:
Is there some reason why the Hyperlink in a DataGrid will not show an image? I have a datagrid with the following: <asp:TemplateColumn visible="false" HeaderText="Skills"> <itemtemplate>...
2
1252
by: fredda054 | last post by:
I now get the following error with my repeater... short desc. of problem. I want to display hyperlinks with a repeater, but add "link not available" and disable the hyperlink if the field in DB is...
4
2204
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"...
1
1041
by: serge calderara | last post by:
Dear all, What is the best way to properly size a datalist item template in order that any datatype fiits properly in ? I have 5 columns inmy template, but could nit find proper rules for...
0
7260
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7160
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7537
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
5685
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
4746
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3233
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3222
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1594
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
799
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.