Wrox Programmer Forums
Classic ASP Professional For advanced coder questions in ASP 3. 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 Professional 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 September 20th, 2009, 11:30 AM
121 121 is offline
Authorized User
Join Date: Sep 2009
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default I shot the code writer

Originally Posted by Old Pedant View Post
*THOSE* lines will work. But the ones do *NOT* have "Response.Write" in them won't.

There's not other way in VBS to accomplish
Execute ( Mid(str,1,a2-1))
, for example.

I don't see how anybody can help you debug this without being able to see what is in str when Function writeContent(str) is called.

Were I in your shoes, I would want to SHOOT the person who wrote this code.

i **************** the code writer before asking him to resolve issue... how do i go about sorting this issue??
Old September 20th, 2009, 01:48 PM
Friend of Wrox
Join Date: Jun 2008
Posts: 1,649
Thanks: 3
Thanked 141 Times in 140 Posts

Well, I'd start by adding in DEBUG code.

For starters, replace the line:
 	Execute ( Mid(str,1,a2-1))
(and any other Execute lines) with
        Response.Write "<HR><h2>EXECUTE:</h2>" & Mid(str,1,a2-1) & "<HR>"
or similar. The idea being to dump out to the screen all those things that would be Execute'd, to find out just what he really is trying to do.

But I'll tell you now, if you aren't a pretty experienced ASP coder, this is going to take you some time to decipher and fix. If you dumped it in my lap--and I consider myself to be a really advanced ASP coder--I wouldn't even give you an estimate of time-to-fix until I'd been able to do some initial debugging, trying to figure out just what the code is doing.

I'd almost surely try to talk you into throwing out the code and starting over with at least this part of it. The *need* to use Execute in a page tells me there was probably a fundamental flaw in the initial design.

Are there exceptions? Of course. But they are so rare that they are unlikely to apply in this case. Again, without diagnosing what's going on now, I couldn't tell.

Similar Threads
Thread Thread Starter Forum Replies Last Post
Microsoft VBScript compilation error '800a03f6' jdutwell Classic ASP Basics 3 April 2nd, 2008 01:50 PM
Microsoft VBScript compilation error '800a03f6' ksrhyd Classic ASP Professional 0 October 11th, 2007 07:53 AM
Microsoft VBScript compilation error '800a03f6' dondavanzo Access ASP 1 May 30th, 2006 02:11 PM
Microsoft VBScript compilation error karlzoe Classic ASP Databases 2 December 29th, 2004 10:44 AM
Microsoft VBScript compilation error '800a03f6' stevesole Access ASP 2 June 8th, 2004 02:04 PM

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