Solved

VB.Net var in href link

Posted on 2010-09-01
5
253 Views
Last Modified: 2012-06-27
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
Comment
Question by:Rickzzz
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
5 Comments
 
LVL 9

Expert Comment

by:puru1981
ID: 33577613
change the (") to (')
0
 

Author Comment

by:Rickzzz
ID: 33577712
thanks, but still no good using:

<td class="text_cell">
     <a href='<%=urlPass %>'</a>
</td>
0
 
LVL 9

Expert Comment

by:puru1981
ID: 33577960
try this

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

Author Comment

by:Rickzzz
ID: 33578308
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
 

Accepted Solution

by:
Rickzzz earned 0 total points
ID: 33578768
Forgot to add text to click on...
0

Featured Post

Independent Software Vendors: 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!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This is a PowerShell web interface I use to manage some task as a network administrator. Clicking an action button on the left frame will display a form in the middle frame to input some data in textboxes, process this data in PowerShell and display…
This article describes how to create custom column layout styles for Bootstrap. The article uses 5 columns to illustrate the concept, but the principle can be extended to any number of columns.
In this tutorial viewers will learn how to style elements, such a divs, with a "drop shadow" effect using the CSS box-shadow property Start with a normal styled element, such as a div.: In the element's style, type the box shadow property: "box-shad…
The viewer will the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.

730 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question