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 derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Unterminated string constant 1

Status
Not open for further replies.
Jan 30, 2002
44
CA
HI There,

I'm getting the 'Unterminated string constant' error with my button. Here are the codes:
<INPUT type=button value=&quot;Edit Doc&quot;
onClick=&quot;top.bottom.location.href='editDoc.asp?DocID=<%=Request.QueryString(&quot;DocID&quot;)%>'&quot;>

What's wrong with this code? Please help!

Thanks

Sout
 
Try to read the Request.Querystring(&quot;DocID&quot;) in a varaible before the line
<INPUT type=button value=&quot;Edit Doc&quot;
onClick=&quot;top.bottom.location.href='editDoc.asp?DocID=<%=Request.QueryString(&quot;DocID&quot;)%>'&quot;>

and then use it like this
<INPUT type=button value=&quot;Edit Doc&quot;
onClick=&quot;top.bottom.location.href='editDoc.asp?DocID=<%Response.write var%>'&quot;>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top