Solved

VB.Net var in href link

Posted on 2010-09-01
5
248 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
  • 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

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Not sure what the best email signature size is? Are you worried about email signature image size? Follow this best practice guide.
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
In this tutorial viewers will learn how to define a gradient in CSS. Create a new HTML document with an internal stylesheet.: Create a div in CSS and name it Gradient. Define the background as "linear-gradient(to right, #ee3668, black)". Ensure you …
In this tutorial viewers will learn how add a full-size background image to a webpage using CSS3. Create a new HTML document with an internal stylesheet.: In CSS, define the html element to have a background image. Use a high resolution image.: In t…

747 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now