Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP 3 Classic ASP Active Server Pages 3.0 > Classic ASP Professional
Password Reminder
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Thread Tools Search this Thread Display Modes
  #11 (permalink)  
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??
Reply With Quote
  #12 (permalink)  
Old September 20th, 2009, 01:48 PM
Friend of Wrox
Join Date: Jun 2008
Location: Snohomish, WA, USA
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.
Reply With Quote

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

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

All times are GMT -4. The time now is 10:14 PM.

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