A Better File Upload Control?

G

George Durzi

Anyone know of a good file upload control? I don't like using the built in
one because it's unable to maintain state on a refresh.

Thanks!
 
C

Curt_C [MVP]

It will involve a clientside control installation you realize?
Not many will allow this
 
G

George Durzi

Nope, didn't realize that ...

Have you found any clean way to make the file upload control maintain state?

My problem is I have a form with a few validators. Let's say my user
provides a file into the file upload control, but forgets another field, so
a requiredfieldvalidator fires.

Now the file upload control needs to be filled again ...
 
K

Kevin Spencer

It isn't the Control per se, but the way that HTML and browsers work.
Browsers will not allow the value attribute of an "input type=file" form
field to be filled programmatically, as it would be a security hole that
would allow malicious web masters to design web sites that steal file system
content from clients.

I would suggest working with it, rather than trying to overcome it. Your
only other alternative is to use a client-side executable, such as an
ActiveX control, to do this.

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.
 
G

George Durzi

I agree ... The issue I'm having is that I have a webform with one of its
entry fields being a file upload.

I'm doing some server side validation, and when the page refreshes after
running that validation, the contents of my Upload control are erased.
Trying to find a way around that.
 

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
474,431
Messages
2,571,677
Members
48,796
Latest member
Greg L.

Latest Threads

Top