Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / December 2006

Tip: Looking for answers? Try searching our database.

FileUpload control not able to retain its value

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Harinath - 22 Dec 2006 11:50 GMT
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
Patrice - 22 Dec 2006 12:09 GMT
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

> Hi All,
>
[quoted text clipped - 20 lines]
>
> -harinath

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.