htmlInputFile

S

Skwish

Hi,

I have a page with a htmlInputFile that is working fine. However, if I go
to another page, and then go back to the page with the htmlInputFile, I get
the following error

Warning: Page has Expired The page you requested was created using
information you submitted in a form. This page is no longer available. As a
security precaution, Internet Explorer does not automatically resubmit your
information for you.

To resubmit your information and view this Web page, click the Refresh
button.


Even if I do not use the htmlInputFile, this error is still generated (there
is not submitted information). If I disable the control, then the error
does not occur.

Please let me know how I can stop this behavior. I would like the user to
be able to move back and forth between two pages without having to refresh
each time.

Thanks for any help,

Stephen
 
K

Kevin Spencer

This behavior is from the browser. It is caused by the fact that an ASP.Net
WebForm posts back to itself. A web page that exists as the result of a form
post has been dynamically-created by some server-side technology, and the
browser knows this. Therefore, if the last page in history was the result of
a form post operation, the browser will prompt you to re-post the form in
order to refresh the page.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
http://www.takempis.com
Big Things are made up of
Lots of Little Things.
 
S

Skwish

Thanks Kevin,

I do have a number of controls on this page (datagrid, dundas chart, etc.),
and the htmlInputFile is the only control that causes this behavior. If I
understand correctly, since the htmlInputFile is some server-side
technology, whenever I return to a page with a htmlInputFile on it, I will
be required to refresh and there is no way around this? If so, are there
other ways to move a file from client to server that will not cause this
behavior?

Stephen
 

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,995
Messages
2,570,230
Members
46,819
Latest member
masterdaster

Latest Threads

Top