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 > Using Quotations In ASP

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 01-13-06, 08:25
tsyscps tsyscps is offline
Member
 
Join Date: Dec 2002
Location: Columbus, GA
Posts: 81
Question Using Quotations In ASP

I need to be able to use Quaotations within my ASP code but am not sure if its possible.

Heres an example, I have a variable

SetDisplayText = "<a href='" & SetLinkAction & "' onclick="NewWindow(this.href,'name','300','125','n o');return false;">" & SetCurrentNumber & "</a>"

On the OnClick, it has ("), I cannot use the tick mark (') becuase it is containined within the OnClick which sets the popup window size.

I remeber an older language where you coukd type something like /"/ and it wouldnt recognize it as closing the quotations.

The way the code above works now, after onclick where the (") is, it ends the text and starts asp.

So basically, is there a way to include a quotation (") within asp while making it look like text instead of iopening and closing the tag?
Reply With Quote
  #2 (permalink)  
Old 01-13-06, 08:45
tsyscps tsyscps is offline
Member
 
Join Date: Dec 2002
Location: Columbus, GA
Posts: 81
Thumbs up

I was able to figure it out. You use 2 sets of quotations instead of 1.

See new code

SetDisplayText = "<a href=""" & SetLinkAction & """ onclick=""NewWindow(this.href,'name','300','125',' no');return false;"">" & SetCurrentNumber & "</a>"
Reply With Quote
  #3 (permalink)  
Old 01-15-06, 17:36
rokslide rokslide is offline
Registered User
 
Join Date: Nov 2003
Location: Christchurch, New Zealand
Posts: 1,617
you can also use the chr function (I think it's chr(34) but I can't be certain).
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