Solved

VB.Net var in href link

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

ScreenConnect 6.0 Free Trial

Explore all the enhancements in one game-changing release, ScreenConnect 6.0, based on partner feedback. New features include a redesigned UI, app configurations and chat acknowledgement to improve customer engagement!

Question has a verified solution.

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

Building a website can seem like a daunting task to the uninitiated but it really only requires knowledge of two basic languages: HTML and CSS.
Not sure what the best email signature size is? Are you worried about email signature image size? Follow this best practice guide.
In this Micro Tutorial viewers will learn how to create navigation buttons that change on rollover, using CSS (Continuation of the CSS Image Sprite tutorial) Create a parent ID for all the list items       - Specify position: absolute and display: block…
In this tutorial viewers will learn how to embed videos in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <video> tag to insert a video. Define the src as the URL of your video; this is similar to …

831 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