Wrox Programmer Forums
|
Classic ASP Basics For beginner programmers starting with "classic" ASP 3, pre-".NET." NOT for ASP.NET 1.0, 1.1, or 2.0
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old February 17th, 2006, 07:51 AM
Registered User
 
Join Date: Jan 2006
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Syntax error

Response.Write "<tr><TD class=table-body><INPUT type='checkbox' name='delfiles' value='" & <%=oRSDocs("FileUrl")%> & "'></TD>"


 Response.Write "<td class=table-body>&nbsp;<A href='" & <%=oRSDocs("FileURL")%> & "'>" & <%=oRSDocs("FileName")%> & "</A></td></tr>"

I receive the following error

"Microsoft VBScript compilation error '800a03ea'
Syntax error "

Couldn't find out errors in the two Response.write statements.
Help me out pls

 
Old February 17th, 2006, 08:08 AM
Friend of Wrox
 
Join Date: Jul 2003
Posts: 683
Thanks: 0
Thanked 1 Time in 1 Post
Default

You cannot embed a Response.Write shortcut in a Response.Write statement, try...
Code:
Response.Write "<tr><TD class=table-body><INPUT type='checkbox' name='delfiles' value='" & oRSDocs("FileUrl") & "'></TD>"
 
Response.Write "<td class=table-body>&nbsp;<A href='" & oRSDocs("FileURL") & "'>" & oRSDocs("FileName") & "</A></td></tr>"





Similar Threads
Thread Thread Starter Forum Replies Last Post
Parse error: syntax error, unexpected T_ELSE in /h vipin k varghese BOOK: XSLT Programmer's Reference, 2nd Edition 4 September 29th, 2011 01:19 AM
Ch 4: Parse error: syntax error, unexpected T_SL hanizar77 BOOK: Beginning PHP5, Apache, and MySQL Web Development ISBN: 978-0-7645-7966-0 0 June 23rd, 2008 09:17 PM
Parse error: syntax error, unexpected T_STRING ginost7 Beginning PHP 1 November 9th, 2007 02:51 AM
VB Error: Syntax Error or Access Violation codehappy VB How-To 7 October 3rd, 2007 05:41 PM
Compile error: Syntax error: & Else without HELP Corey VB How-To 2 April 21st, 2006 03:25 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.