Forums

This topic is locked

Pure ASP Upload 2.0 breaks my Update Form

Posted 28 Jun 2002 01:17:23
1
has voted
28 Jun 2002 01:17:23 Gaines Kergosien posted:
Before I explain my problem, let me express how I've spent the whole day searching forums, reading tutorials, and trying to figure out what is going on. Although the solution may turn out to be simple, I have put a lot of effort into discovering it myself and have failed. I just didn't want people thinking that I haven't already tried to resolve this on my own.

Here's my dillemma. I have a page with a form used to update information for a product. I want the user to be able to add/change the current image. The form works perfectly as it is currently shown (code attached) but as soon as I add the Pure ASP Upload behavior it breaks. After that I get "The page cannot be displayed". This is even when I'm submitting the form without uploading an image.
I followed the tutorial which was very basic but it's still not working. I'm using Dreamweaver Ultradev 4 and a SQL Server 2000 database. The website is temporarily located at www6.signiasolutions.com and you can log in with the username "default" and password "pass" to troubleshoot. Just click on the edit link next to any product in the catalog.

The original code is located here:
www6.signiasolutions.com/before.txt

The code modified by adding the Pure ASP Upload 2.08 code is here:
www6.signiasolutions.com/after.txt

Replies

Replied 28 Jun 2002 01:19:57
28 Jun 2002 01:19:57 Gaines Kergosien replied:
I apologize for the duplicate posts.
Replied 02 Jul 2002 02:40:29
02 Jul 2002 02:40:29 Arnie Wachman replied:
I had the same problem using version 2.08 so I downloaded version 2.09 and found the problem solved. Unfortunately I now have a new problem! I get the error message: "Error Type:
Server.MapPath(), ASP 0173 (0x80004005)
An invalid character was specified in the Path parameter for the MapPath method.
/mars/ScriptLibrary/incPureUpload.asp, line 162
" <BLOCKQUOTE id=quote><font size=1 face="Verdana, Arial, Helvetica" id=quote>quote:<hr height=1 noshade id=quote>
Before I explain my problem, let me express how I've spent the whole day searching forums, reading tutorials, and trying to figure out what is going on. Although the solution may turn out to be simple, I have put a lot of effort into discovering it myself and have failed. I just didn't want people thinking that I haven't already tried to resolve this on my own.

Here's my dillemma. I have a page with a form used to update information for a product. I want the user to be able to add/change the current image. The form works perfectly as it is currently shown (code attached) but as soon as I add the Pure ASP Upload behavior it breaks. After that I get "The page cannot be displayed". This is even when I'm submitting the form without uploading an image.
I followed the tutorial which was very basic but it's still not working. I'm using Dreamweaver Ultradev 4 and a SQL Server 2000 database. The website is temporarily located at www6.signiasolutions.com and you can log in with the username "default" and password "pass" to troubleshoot. Just click on the edit link next to any product in the catalog.

The original code is located here:
www6.signiasolutions.com/before.txt

The code modified by adding the Pure ASP Upload 2.08 code is here:
www6.signiasolutions.com/after.txt
<hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Verdana, Arial, Helvetica" size=2 id=quote>

Replied 02 Jul 2002 15:55:09
02 Jul 2002 15:55:09 Gaines Kergosien replied:
I downloaded 2.09 and tried it. I still had the same problem. Fortunately, I got a reply from ( ) saying "I really cannot be sure but try moving the request.querystring() instances, the admin validation, and your recordsets above the pure upload behavior. It's worked for me more than once."

I was pretty sure I had tried this before, but I went ahead and gave it another shot. It worked with 2.09! <img src=../images/dmxzone/forum/icon_smile.gif border=0 align=middle> Just thought I'd post this so anyone else having this trouble knows to:

1) Upgrade to Pure ASP Upload 2.09
2) Move your recordsets above the Pure ASP code

Thanks for the help!

As for your problem, post the code (save it to a text file on a web server and put the link here) and I'll see if I can help. <img src=../images/dmxzone/forum/icon_smile.gif border=0 align=middle>
Replied 17 Jul 2002 18:57:43
17 Jul 2002 18:57:43 Alan Chua replied:
hi guys,

I am having the same problem, can you help?
1) where to get 2.09?
2) which part of the code belongs to the recordset? seems confusing.

Thanks,

Regards,

Lonetree
Replied 17 Jul 2002 23:25:47
17 Jul 2002 23:25:47 Gaines Kergosien replied:
As for where you get the update, I understand you download it from here (UDZone). You have to be logged in with the account that originally purchased ASP Upload. I wasn't the person who actually purchased my copy so I had to ask him to log in and get the update for me.

On the topic of how Ultradev does code, Ultradev's code is very modular. For the most part it declares all the variables (the stuff you set like database info) at the top of the code. Everything below is fairly static meaning that it doesn't need to change much, if at all, for different situations.

Recordsets have two to three sections of code. The first is where any parameter variables are set. Obviously, if the recordset doesn't have any parameters (like a full table select) this section will be absent. The second section is where the database call is set up and opened. These two sections will be together somewhere at the top of the page (above where the html starts). The last section is at the very bottom of the page where it closes the recordset. If you know the name of your recordset (I usually preface my recordsets with "rs" for easier recognition like "rsAllUsers" then it shouldn't be too hard to recognize these lines.

Gaines

Edited by - gaines on 17 Jul 2002 23:30:15

Reply to this topic