PDA

View Full Version : ASP and Persits Upload Component


tidewaterto
12-02-2005, 09:08 AM
Thank you in advance...

I have an ASP page that creates the Persits upload component and inserts form values into a database. My page is uploading the image file just fine and my form values are getting inserted into the database. The problem I am having, it that the response.redirect will not fire. I have tried everything to get this to work and I am not having any luck.

Is there something that I need to do different since I am using this upload component or should the response.redirect work regardless. My code is outlined like this:

Set xxxx = create upload object
count = virtual save of the file

if xxxx.submit = "Some value" then
add the form values to the database
response.redirect("URL")
end if

Is that not right?

Thanks again

bruce
12-03-2005, 01:59 AM
response.redirect should work just fine. i see that this line is inside a if-then statement, it could be possible that the if condition is not met.

Bruce

DiscountASP.NET
www.DiscountASP.NET (http://www.DiscountASP.NET)

bluebeard96
12-03-2005, 08:35 AM
are you getting any error messages? Also, you cannot use response.redirect after writing any content to the page. Could this be the issue?



Mike Reilly, Secretary/Webmaster
Kiwanis Club of Rancho Penasquitos
"Serving the Children of the World"
Mike@KiwanisPQ.org
www.KiwanisPQ.org (http://www.KiwanisPQ.org)
(760) 419-7429