Wrox Programmer Forums
|
ASP Forms As of Oct 5, 2005, this forum is now locked. Please use "Classic ASP beginner" at http://p2p.wrox.com/forum.asp?FORUM_ID=54 or "Classic ASP Professional" http://p2p.wrox.com/forum.asp?FORUM_ID=56 instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP Forms 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 7th, 2005, 08:43 AM
Friend of Wrox
 
Join Date: Jun 2004
Posts: 106
Thanks: 0
Thanked 0 Times in 0 Posts
Default Is it possible to have 2 FSO on 1 page?

Hi,
I have a page that has serveral forms on it, all which require a File System Object, with different attributes.

Here is the error I get:
Microsoft VBScript runtime error '800a000d'

Type mismatch: 'fsoFileExists'

/tech.asp, line 237


Here's the line of code on Line 237:
-----
If (fsoFileExists(strpath2)) Then
-----

Of course this is from the second form's input field.

I tried this code :

---------
Set fso2 = CreateObject("Scripting.FileSystemObject")

pl="\DOCS\Parts_List\"&model2&".pdf"

strpath2=Server.MapPath(pl)

If (fso2FileExists(strpath2)) Then

Response.Redirect(""&pl&"")
---------

But that didn't work either !

Please help,
nancy






Similar Threads
Thread Thread Starter Forum Replies Last Post
fso error merck_04 .NET Framework 1.x 0 October 18th, 2006 05:53 AM
FSO question savoym VBScript 3 February 24th, 2005 11:05 AM
FSO - unstable nancy Classic ASP Databases 3 September 10th, 2004 09:52 AM
FSO mikedeepak Classic ASP Databases 5 August 4th, 2004 05:55 AM
FSO mikedeepak Classic ASP Databases 0 August 4th, 2004 12:35 AM





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