Link to home
Start Free TrialLog in
Avatar of unomateo
unomateo

asked on

how to enableviewstate on an input type=file

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

Thanks
Matt
ASKER CERTIFIED SOLUTION
Avatar of David H.H.Lee
David H.H.Lee
Flag of Malaysia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial