Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 257
  • Last Modified:

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!!
0
Rickzzz
Asked:
Rickzzz
  • 3
  • 2
1 Solution
 
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
 
RickzzzAuthor Commented:
Forgot to add text to click on...
0

Featured Post

Technology Partners: 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!

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