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
"Kevin Spencer" <ke***@DIESPAMMERSDIEtakempis.com> wrote in message
news:u1*************@TK2MSFTNGP11.phx.gbl...
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.
"Skwish" <st************@meck.com> wrote in message
news:OK**************@TK2MSFTNGP12.phx.gbl... 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