Larry Brister
asked on
Eval Hyperlink
Can someone tell me why this isn't working?
<a href="resortDetail.aspx?id ='<%# Eval("ResortID") %>'"
<a href="resortDetail.aspx?id
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>
<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 = / #... ;-) )
<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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Since you found out the solution yourself, you can assign points to your post and mark this issue for PAQ.