ASP and Persits Upload Component

Discussion in 'General troubleshooting' started by tidewaterto, Dec 2, 2005.

  1. 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
     
  2. Bruce

    Bruce DiscountASP.NET Staff

    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
     
  3. 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"
    [email protected]
    www.KiwanisPQ.org
    (760) 419-7429
     

Share This Page