• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 569
  • Last Modified:

Eval Hyperlink

Can someone tell me why this isn't working?

<a href="resortDetail.aspx?id='<%# Eval("ResortID") %>'"
0
lrbrister
Asked:
lrbrister
1 Solution
 
Carl TawnSystems and Integration DeveloperCommented:
Where is ResortID supposed to be coming from?
0
 
nmarunCommented:
That's right. Can you please post the entire code.. both aspx and the code-behind?
0
 
burakiewiczCommented:
try this
<a href='<%#= "resortDetail.aspx?id=" + Eval("ResortID") %>' ></a>
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
EspavoCommented:
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
 
sm394Commented:
also post what error msg you getting
0
 
lrbristerAuthor Commented:
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
 
nmarunCommented:
Since you found out the solution yourself, you can assign points to your post and mark this issue for PAQ.
0

Featured Post

Granular recovery for Microsoft Exchange

With Veeam Explorer for Microsoft Exchange you can choose the Exchange Servers and restore points you’re interested in, and Veeam Explorer will present the contents of those mailbox stores for browsing, searching and exporting.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now