469,160 Members | 1,830 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,160 developers. It's quick & easy.

htmlInputFile

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
Nov 17 '05 #1
2 1748
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

Nov 17 '05 #2
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


Nov 17 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Newbie | last post: by
5 posts views Thread by Ariel Dolan | last post: by
5 posts views Thread by Grant Harmeyer | last post: by
2 posts views Thread by Augusto Cesar via DotNetMonster.com | last post: by
3 posts views Thread by UJ | last post: by
7 posts views Thread by Buddy Ackerman | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by zhoujie | last post: by
1 post views Thread by Mortomer39 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.