[02/03] File Upload contol loses value
I have a file upload control on my aspx page and everything works fine if the user enters all the required information. The problem is when a a required field is not assigned a value the File upload control loses its value.
Is there a way to retain the value in the file upload control when there is a page postback?
Re: [02/03] File Upload contol loses value
You could use Cache code to hold the information and pass it back to the page on post back...that should do the trick for you ;)
Re: [02/03] File Upload contol loses value
If a postback occurs, the file upload field will blank out. This is a standard on the Web regarding upload input boxes and it cannot be overridden. You can't even set a default value for it, for the same reason.
My suggestion is to usually use a pop up window to attach files so that the functionality of uploading is separated from the form itself, but of course doing so will require additional coding.