how to enableviewstate on an input type=file
Posted on 2004-03-23
I have a form with a file input that allows users to browse local harddrive for images to upload.
On the same form I have an autopostback dropdownlist for categories, but when the event fires all the server controls maintain viewstate but the file inputs are cleared?
I tried adding runat=server enable viewstate = true
but that does not work.
I also set a hidden label with the file value, but I am unable to set the inputfile.value with the lable.text.
Does anyone have a solution. I really want the inputs to maintain their values, without having extra labels and extra work