Reputation: 85056
I have a situation where I want a user to select a file, then select an option from a DropDownList.
When they select an item from the DropDownList I do an auto post back and do some stuff with the file, but this causes the path to clear out. Is there some way that I can keep the path from clearing out?
Upvotes: 0
Views: 1576
Reputation: 101
You can save the path in the input hidden, and every postback or change the value on .fileupload you can update the some input. It's just a possibility. Best Regards
Upvotes: 0
Reputation: 930
AFAIK it is impossible for security reason. There is no way to modify contents of file uploader by javascript or something like that. Only thing I can suggest is having a label on page which will show the file path from the last postback.
Upvotes: 1