1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

ASP coding question

Discussion in 'C#' started by BannerSpot, May 17, 2006.

  1. #1
    How would I, in an ASP script, take a URL that I have stored as a string in a variable and use that URL to make an image hyperlinked?

    I understand how to capture the URL and store it into a variable in the script, but how do i use that URL in a hyperlink later on?

    Thanks alot in advance
     
    BannerSpot, May 17, 2006 IP
  2. DanInManchester

    DanInManchester Active Member

    Messages:
    116
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    53
    #2
    If you have your hylerlink in the variable strUrl it woudl work like this :

    <a href="<% = strUrl %>" ><img src="someimage.gif" /></a>

    Is that what you're after ?
     
    DanInManchester, May 17, 2006 IP
    jaymcc likes this.
  3. BannerSpot

    BannerSpot Peon

    Messages:
    462
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #3
    exactly what i was looking for thanks a ton!
     
    BannerSpot, May 18, 2006 IP