Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

response.write syntax

Status
Not open for further replies.

Footbal76

MIS
Sep 6, 2006
21
US
I have a PDF file in a directory and Im trying to link it

But I have a syntax problem and I have been trying to find out the problem but I have'nt had any luck

any help would be appraciated

Response.Write ("<a href=/File/"BUS2006T2D.pdf"> "+BUS+" "+0405T2D1+" BUS </a>")
 
should be...


Code:
Response.Write ("<a href='/File/BUS2006T2D.pdf'> " & BUS & "  " & 0405T2D1 & "  BUS </a>")

btw... what is 0405T2D1? a variable name?



*cLFlaVA
----------------------------
[tt]mr. pibb + red vines = crazy delicious![/tt]

[URL unfurl="true"]http://www.coryarthus.com/[/url]
 
get an error.
0405T2D1
this is just a name not a variable

Error Type:
Microsoft VBScript compilation (0x800A03EE)
Expected ')'
/App_PDF/PDFIndex.asp, line 117, column 70
Response.Write ("<a href='/File/BUS2006T2D.pdf'> " & BUS & " " & 0405T2D1 & " BUS </a>")
---------------------------------------------------------------------^
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top