|
|
|
|
|
| | |
|
Active Server Pages help tutorial how to ASP Help ASP Tutorials ASP Programming ASP Code - ASP Free CJWSoft ASPProtect ASPBanner ASPClassifieds
(Advanced)
(Components)
(Database)
(General)
(Vbscript)

|
|
Subject: |
Problem creating objects. |
From: |
Jae Emans |
Date: |
5/2/2001 11:36:17 AM |
IP: |
63.24.52.11 |
Hello. Basically, I want to write an ASP that accepts a path to an XML file and reads it, line by line. There is a form to input the path, and if the path is not entered, the ASP script displays an input box.
Heres the code I'm having trouble with: (Pound signs delineate line breaks)
#If Request.ServerVariables ("CONTENT_LENGTH") <> 0 Then
#filePath = Trim(Request.Form("pathName"))
#Set fsObject = Server.CreateObject("Scripting.FileSystemObject")
#Set textFile = fsObject.OpenTextFile(filePath, 1, 1)
I think the probelem is actually the if statement. It seems to be accepting the form, even though it is empty. I wrote a code like this months ago, but my job doesn't allow me to work with anyone language for a very long time. Why would my if statement be falling through? This gives me the error that I cannot create an FileSystemObject. |
|
|
|
|
|
|
|
|
|
|
|
|