Solved

Eval Hyperlink

Posted on 2009-04-06
7
554 Views
Last Modified: 2013-11-26
Can someone tell me why this isn't working?

<a href="resortDetail.aspx?id='<%# Eval("ResortID") %>'"
0
Comment
Question by:lrbrister
7 Comments
 
LVL 52

Expert Comment

by:Carl Tawn
ID: 24081074
Where is ResortID supposed to be coming from?
0
 
LVL 27

Expert Comment

by:nmarun
ID: 24081143
That's right. Can you please post the entire code.. both aspx and the code-behind?
0
 
LVL 16

Expert Comment

by:burakiewicz
ID: 24081159
try this
<a href='<%#= "resortDetail.aspx?id=" + Eval("ResortID") %>' ></a>
0
What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

 
LVL 10

Expert Comment

by:Espavo
ID: 24081160
Have you tried:
<a href='<%# "resortDetail.aspx?id=" & Eval("ResortID") %>'>  
or
<a href='<%= "resortDetail.aspx?id=" & Eval("ResortID") %>'>  
(I always get confused about the = / #... ;-) )
0
 
LVL 13

Expert Comment

by:sm394
ID: 24081169
also post what error msg you getting
0
 

Accepted Solution

by:
lrbrister earned 0 total points
ID: 24081170
Hey guys...
I made a basic meathead move...
The code above works...I had the wrong destination page referenced.  All I had to do also...was remove single quotes.

Here's final version...
<a href="resortDetail2.aspx?id=<%#Eval("ResortID")%>" class="galleryResortLink">View Details</a>

Should I split points pr request the issue be closed without objection?
0
 
LVL 27

Expert Comment

by:nmarun
ID: 24081209
Since you found out the solution yourself, you can assign points to your post and mark this issue for PAQ.
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

708 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now