File upload and page PostBack.

  • Thread starter Thread starter Pamela Chatterjee
  • Start date Start date
P

Pamela Chatterjee

In my project I am uploading file using File control. After browsing
file user needs to select other values from DropdownList to determine
uploading path. After selection in couple of drop down lists page
needs to postback. The problem is File input field becomes clear
after posting pack of the page. But I need to keep and display the
file name in the file field, which has been browsed initially. Can
anybody please help me about that?

Thanks for any help.

Pamela.
 
My guess would that because the file gets uploaded immediately upon post
back, if the field was to be repopulated with the path of the file, then the
file would continually be uploaded each time the page re-submits. If you
need to keep the path information, on postbacks, you might want not to
display the file upload form field and rather display a static label showing
the path.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Back
Top