Connecting Tech Pros Worldwide Forums | Help | Site Map

Expected end of statement

Familiar Sight
 
Join Date: Jul 2006
Posts: 181
#1: Jun 10 '09
Hi, I am tryig to set up a progress bar on an upload feature. I get the following error thrown up on this line.
Expected end of statement on the R of response.write

Expand|Select|Wrap|Line Numbers
  1. <% Response.Write Request.ServerVariables("URL") Response.Write "?to=" & TimeO & "&PID=" & PID %>">
I someone could say if there is anything obviously wrong that would be great.
Thanks
Richard

Familiar Sight
 
Join Date: Jul 2006
Posts: 181
#2: Jun 10 '09

re: Expected end of statement


Hi, just to say I worked it out as.
<% Response.Write Request.ServerVariables("URL")%> <% Response.Write "?to=" & TimeO & "&PID=" & PID %>

thanks richard
GazMathias's Avatar
Expert
 
Join Date: Oct 2008
Location: Bristol, United Kingdom
Posts: 145
#3: Jun 11 '09

re: Expected end of statement


This would also work:

Expand|Select|Wrap|Line Numbers
  1. Response.Write Request.ServerVariables("URL") & "?to=" & TimeO & "&PID=" & PID
  2.  
Gaz
Familiar Sight
 
Join Date: Jul 2006
Posts: 181
#4: Jun 12 '09

re: Expected end of statement


Thanks Gaz that looks like it would work too
Richard
Reply