By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
437,708 Members | 2,080 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 437,708 IT Pros & Developers. It's quick & easy.

FileUpload control not able to retain its value

P: n/a
Hi All,

I am working on a portal using .net2.0.

In one of my page, i have FileUpload control.

I am doing some server side validation for form fields in general. if
there is any validation missing control comes back to the user.

All other fields in the screens are retaining their values, but the
FileUpload control values (what ever file user has selected is not
retained).

I come across few references on the net saying that it is the default
nature of the control. server cannot set the FileUpload control file
value (this might enable the application developer to upload files
without knowledge of the end user).
In my case, i need to do this else it will be treated as a bug by
client.
If you are aware of any thing related to this,please do let me know.

-harinath

Dec 22 '06 #1
Share this Question
Share on Google+
1 Reply


P: n/a
As you saw this is by design (for safety reasons).

The only solutions I can think of are :
- doing client side validation
- validating using no postback à la AJAX
- making extra clear the all process for the customer
- changing the UI (for example uploading the file in its own pop window).
- others ?

---

Patrice

"Harinath" <ha***********@gmail.coma écrit dans le message de news:
11*********************@48g2000cwx.googlegroups.co m...
Hi All,

I am working on a portal using .net2.0.

In one of my page, i have FileUpload control.

I am doing some server side validation for form fields in general. if
there is any validation missing control comes back to the user.

All other fields in the screens are retaining their values, but the
FileUpload control values (what ever file user has selected is not
retained).

I come across few references on the net saying that it is the default
nature of the control. server cannot set the FileUpload control file
value (this might enable the application developer to upload files
without knowledge of the end user).
In my case, i need to do this else it will be treated as a bug by
client.
If you are aware of any thing related to this,please do let me know.

-harinath

Dec 22 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.