hyperlink on a response.write()

Results 1 to 2 of 2

Thread: hyperlink on a response.write()

  1. #1
    Join Date
    Dec 1969

    Default hyperlink on a response.write()

    is there a way to put executable html in the script? i am reading from a file on the server and putting the desired hyperlink and the linked text into seperate respective variables. how can i make the script assign the appropriate hyperlink to the text without breaking out of the script notation (im doing this within a couple nested loops, so i cant realyl break out of it)?

  2. #2
    Join Date
    Dec 1969

    Default Yeah..

    you can break out of script and put in HTML at any time like this...<BR><BR>for i = 1 to 100<BR>%&#062;<BR>&#060;a href="blah.html"&#062;blah&#060;/a&#062;<BR>&#060;%<BR>next<BR><BR>That would print a blah link 100 times, or you could do it inline with the ASP...<BR><BR>for i = 1 to 100<BR>response.write("&#060;a href=""blah.asp""&#062;blah&#060;/a&#062;")<BR>next<BR><BR>note the double quotes where there should be single, these are needed to ensure that the quotes are printed correctly to the HTML output.<BR><BR>-- Whol

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts