473,831 Members | 2,092 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Pls Help: Hyperlink containing Container.DataI tem not working

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

<asp:HyperLin k id="hlView" runat="server" Font-Bold="True"
NavigateUrl='Se archDetails.asp x?ListingId=<%# Container.DataI tem("ListingId" )%>'>View</asp:HyperLink>& nbsp;

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

SearchDetails.a spx?ListingId=< %#Container.Dat aItem("ListingI d")%>

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 1002

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

Similar topics

1
2576
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? The field "InfoURL" contains the hyperlink and the field "City" is a string field containing the text I want the user to be able to clock on. <columns> <asp:BoundColumn HeaderText="Start Date" DataField="StartDate" DataFormatString="{0:d}" />...
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 images as the ImageURL of the Hyperlink. When a load the page with the controls on it works fine, but sometimes the images are broken, but if i hit refresh i get random selections of the gifs appearing and not appearing. if i hit Back button to a page...
2
2617
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 columns is not databound and instead has up to three hyperlinks in it (Edit, Award, and Cancel). A couple of the hyperlinks should not be shown in certain cases. Now, mind you, I don't know if it's being done in the way that's best to do it. It...
4
1173
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 can't get it to work. http://www.extremeexperts.com/Net/faq/PassingMulitpleParameterinURLLink.aspx Does anyone have a working example? need: pagename?tab=(tabname)&id={0} first is a request.param value (tabname) second is a container field...
2
2240
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 with 2 parameters passed in. Has anyone any ideas how to add the hyperlink? Many Thanks
1
2651
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> <asp:HyperLink id="SkillsTestDate" imageURL="../images/checkmark.gif" visible="false" Text='<%# Container.DataItem("SkillsTestDate")%>' NavigateUrl='<%# "displayAppResumeEE2.aspx?JobID" & Container.DataItem("JobID") %>'
2
1266
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 null. as it is now i get: "Compilation Error" "Compiler Error Message: BC30201: Expression expected"
4
2222
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" NavigateUrl="javascript:OpenImage('<%# DataBinder.Eval(Container.DataItem,"FileName") %>');"><%#
1
1052
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 dimension it properly. How to use percent or pixel ?
0
10778
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10496
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9319
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7750
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5622
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5788
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4419
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 we have to send another system
2
3967
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3077
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.