Link to home
Start Free TrialLog in
Avatar of Rickzzz
Rickzzz

asked on

VB.Net var in href link

Trying to stuff a vb var into an href link and no dice.

this works fine as there is a value:
<td class="text_cell">
    <%=urlPass %>
</td>


This does not (cell is blank).
<td class="text_cell">
     <a href="<%=urlPass %>"</a>
 </td>

Is it just the syntax or? Thanks!!
Avatar of puru1981
puru1981

change the (") to (')
Avatar of Rickzzz

ASKER

thanks, but still no good using:

<td class="text_cell">
     <a href='<%=urlPass %>'</a>
</td>
try this

<td class="text_cell">
     <a href='<%=urlPass %>'/>
</td>
Avatar of Rickzzz

ASKER

still no:
<td class="text_cell">
     <a href='<%=urlPass %>'/>
</td>

The end game is to populate a cell with a link (URL) that's pulled from a sql query, the value in urlPass. Should I go another route?
ASKER CERTIFIED SOLUTION
Avatar of Rickzzz
Rickzzz

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