Asp.net File Upload Control Loses File On Postback

Asp.net File Upload Control Loses File On Postback Rating: 7,5/10 9444 reviews

I have got problem with FileUpload control. I have this one, two drop down list, text box and button.

I'm trying to add dynamic gridview which contains some textboxes and a file upload control. File upload filename get lost after page postback. How to maintain web controls when page is postback File Upload Control. Maintain Panel Scroll Position On Postback in ASP.NET.

He who loses control loses quote

If I select in first dropDownList 'Yes' second one become disable and set value on NO (In second ddl I have two option YES or NO and in first one as well) however if I select NO in first dropDownList I posible to choose both option in second dropDownList. First ddl change second one on postBack using selectedIndexChanged evet and when it happends I loose file name in UploadFile control which I set before. Hp deskjet 2515 driver download. Code sample: -- Select -- Yes No What should I do to keep file name in UploadFile control during changes selected options in drop down lists?