Quote Trouble with path variable

S

Scott

I'm trying to concatenate a path of Application("WebSiteFullPath") which
equals http://www.mywebsite.com/ and an image file like CODE below. My
problem is the full path listing in RESULTS below adds an extra " quote and
obviously breaks the path to the image. How can I script the quotes to not
add the extra double quote between my website path variable and my image
path?


CODE:
Response.Write "<img border=""0"" src=""" &
Application("WebSiteFullPath") & """images/edit.gif"" width=""15""
height=""15"">

RESULTS
<img border="0" src="http://www.mywebsite.com/"images/edit.gif" width="15"
height="15">
 
B

Bob Barrows [MVP]

Scott said:
I'm trying to concatenate a path of Application("WebSiteFullPath")
which equals http://www.mywebsite.com/ and an image file like CODE
below. My problem is the full path listing in RESULTS below adds an
extra " quote and obviously breaks the path to the image. How can I
script the quotes to not add the extra double quote between my
website path variable and my image path?


CODE:
Response.Write "<img border=""0"" src=""" &
Application("WebSiteFullPath") & """images/edit.gif"" width=""15""
height=""15"">

RESULTS
<img border="0" src="http://www.mywebsite.com/"images/edit.gif"
width="15" height="15">

It should be pretty simple to see where you have to eliminate the literal
quotes from the string you are concatenating. However:

Response.Write "<img border=""0"" src=""" &
Application("WebSiteFullPath") & "images/edit.gif"" width=""15""
height=""15"">

Bob Barrows
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,744
Messages
2,569,483
Members
44,901
Latest member
Noble71S45

Latest Threads

Top