How to prevent FileUpload from uploading on Prev click in a wizard?

B

Bogdan

Hi,

I have a FileUpload control on the last step in a wizard control. I'd like
the control to upload the file only when the Finish button is clicked
(present on the last step). Unfortunately the control also uploads the file
when the Previous button is clicked. I'm assuming that this is because the
page is posted-back (submitted) to the server.
Is there a way to change that behaviour?

Thanks,
Bogdan
 
P

Peter Bucher [MVP]

Hello Bogdan
Is there a way to change that behaviour?
No - not directly

The upload is started by the client when a postback occours.
On the serverside is the upload allready done, and you can choose wheter to
save or not.....
So you have to interact on clientside.

For example:
use (javascript: history(-1);) or similar.
delete your <input type="file.... with help of the DOM
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,578
Members
45,052
Latest member
LucyCarper

Latest Threads

Top