Link to home
Start Free TrialLog in
Avatar of Larry Brister
Larry BristerFlag for United States of America

asked on

Eval Hyperlink

Can someone tell me why this isn't working?

<a href="resortDetail.aspx?id='<%# Eval("ResortID") %>'"
Avatar of Carl Tawn
Carl Tawn
Flag of United Kingdom of Great Britain and Northern Ireland image

Where is ResortID supposed to be coming from?
That's right. Can you please post the entire code.. both aspx and the code-behind?
try this
<a href='<%#= "resortDetail.aspx?id=" + Eval("ResortID") %>' ></a>
Have you tried:
<a href='<%# "resortDetail.aspx?id=" & Eval("ResortID") %>'>  
or
<a href='<%= "resortDetail.aspx?id=" & Eval("ResortID") %>'>  
(I always get confused about the = / #... ;-) )
also post what error msg you getting
ASKER CERTIFIED SOLUTION
Avatar of Larry Brister
Larry Brister
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Since you found out the solution yourself, you can assign points to your post and mark this issue for PAQ.