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

  • Thread starter Thread starter Bogdan
  • Start date Start date
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
 
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
 
Back
Top