FileUpload control not able to retain its value

H

Harinath

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
 
P

Patrice

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 ?
 

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

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,482
Members
44,901
Latest member
Noble71S45

Latest Threads

Top