If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > ASP > Help with a hyperlink in asp

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 12-16-06, 15:09
Mcphee78 Mcphee78 is offline
Registered User
 
Join Date: Nov 2006
Posts: 3
Help with a hyperlink in asp

Hi there i hope some on can help me i thought this would be straght forward
but i just can't get this to work.

in html you can do <a href="MyDoc.doc#Mybookmark">docTitle</a>
and this will open the document and go to where the the bookmark is located with that document

my problem is when i try and build a this link with asp it does not work

Response.write("<a href="" & rs2("File") & "#" & rs2("bookmark") & """>" & rs("DocTitle") & "</a>")

can anyone offer some help

cheers
Reply With Quote
  #2 (permalink)  
Old 01-04-07, 14:02
kilroy_was_here kilroy_was_here is offline
Registered User
 
Join Date: Jan 2007
Location: on Earth, in Canada ...
Posts: 1
It looks to me like you are missing a double-quote
Code:
Response.write("<a href=""" & rs2("File") & "#" & rs2("bookmark") & """>" & rs("DocTitle") & "</a>")
                          ^
Reply With Quote
  #3 (permalink)  
Old 01-15-07, 04:02
KillerApp KillerApp is offline
Registered User
 
Join Date: Jul 2004
Posts: 23
I always use the single quote ... it makes life much easier
Reply With Quote
  #4 (permalink)  
Old 01-26-07, 11:55
igordonin igordonin is offline
Registered User
 
Join Date: Jul 2006
Posts: 56
Yeah, I'd use the single quotes too ...

In JavaScript you may just use a backslash like

var = "\"quote my friend here\"";


Don't know if there's a way to do it in VBScript thou ...

Sorry
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On