Variable in hyperlink

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • pieandpeas
    New Member
    • Sep 2007
    • 43

    #1

    Variable in hyperlink

    my current code in my aspx page looks like this
    <a href="http://www.link.com/frame.asp?var=3 1>Go</a> , i have a variable varID in the aspx.vb page, id like that variable to appear instead of the 31 in the var=

    How do i do this?
  • nateraaaa
    Recognized Expert Contributor
    • May 2007
    • 664

    #2
    If you make your variable public in your code behind file you can access it the html file like this

    <a href="http://www.link.com/frame.asp?var=" <%=varID%>>Go </a>

    Nathan

    Comment

    Working...