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!!
RickzzzAsked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
RickzzzConnect With a Mentor Author Commented:
Forgot to add text to click on...
0
 
puru1981Commented:
change the (") to (')
0
 
RickzzzAuthor Commented:
thanks, but still no good using:

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

<td class="text_cell">
     <a href='<%=urlPass %>'/>
</td>
0
 
RickzzzAuthor Commented:
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?
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.