Pure ASP Upload 2 Support Product Page

This topic is locked
This topic was archived

capture button press - RESOLVED

Asked 11 Apr 2008 10:02:56
1
has this question
11 Apr 2008 10:02:56 Alison Broady posted:
I have a form which is uploading a file and recording form submission in the data base. However, I want sometimes to be able to add a colour from a colour list in which case I don't need to write data back to database (this is fine - I am redirecting before I get to this code). However when I DO want to write to the database I hit the redirect. I was using if (String(UploadFormRequest("Addbutton")!="undefined"
{}to hit the condition but it hits it anyway.

How do I EXCLUDE code from running after the upload code? I really need an answer to this urgently as it is rare that I am only doing an upload on a page.

- I answered my own question - I set a hidden field to a specific value on button press and then tested for the absolute value using UploadFormRequest - this seems to work.

Edited by - catalib on 11 Apr 2008 10:52:15

Reply to this topic