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 2 1873
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
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
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: R Reyes |
last post by:
I am coding a forum and am having problems passing around the attachment file
(as an HtmlInputFile) from page to page. Sometimes the users may want to
preview their posts with the attachment specs...
|
by: Newbie |
last post by:
i have a c# asp.net webform that has an HtmlInputFile and a listbox (to hold
the filenames to be uploaded). but HtmlInputFile.PostedFile and
HtmlInputFile.Value are readonly properties. i have to...
|
by: shimonsim |
last post by:
Hi,
I need to upload pictures from client machine and I am using HtmlInputFile
control I set validator to make sure that file has correct expention but if
one of the files has incorrect extention...
|
by: Ariel Dolan |
last post by:
Can I use HtmlInputFile to only get the selected file name but not actually
upload the file?
Clicking the control's Browse button let's the user select a file. All I
need is the HtmlInputFile...
|
by: Grant Harmeyer |
last post by:
I have an application that uses FreeTextBox 2.0
(http://www.freetextbox.com). FreeTextBox is a rich text editor that behaves
similarly to MS Word. The FreeTextBox control has a button to insert...
|
by: Augusto Cesar via DotNetMonster.com |
last post by:
Hi, I want to customize the HtmlInputFile. I wanna something like an image
button to play the "browse" button hole and hide the textbox. Is that
possible?
I also have tried to hide an...
|
by: UJ |
last post by:
Guys,
I know this isn't the appropriate place to post this because it's HTML not
ASP.Net but I need some guidance. I have a web page with an HTMLInputFile on
it. The person enters the stuff,...
|
by: Buddy Ackerman |
last post by:
I created this class
Public Class HTMLFileInput : Inherits System.Web.UI.HtmlControls.HtmlInputFile
Public Property Data As String
Get
Return ViewState("HTMLFileInput.Data")
End Get
Set...
|
by: Dave Adler |
last post by:
Is there any way to retain the value of an HtmlInputFile control through a
postback?
I do some server side validation on the page when it is submitted and if an
error occurs on the page the...
|
by: antdb |
last post by:
Ⅰ. Advantage of AntDB: hyper-convergence + streaming processing engine
In the overall architecture, a new "hyper-convergence" concept was proposed, which integrated multiple engines and...
|
by: WisdomUfot |
last post by:
It's an interesting question you've got about how Gmail hides the HTTP referrer when a link in an email is clicked. While I don't have the specific technical details, Gmail likely implements measures...
|
by: Oralloy |
last post by:
Hello Folks,
I am trying to hook up a CPU which I designed using SystemC to I/O pins on an FPGA.
My problem (spelled failure) is with the synthesis of my design into a bitstream, not the C++...
|
by: Carina712 |
last post by:
Setting background colors for Excel documents can help to improve the visual appeal of the document and make it easier to read and understand. Background colors can be used to highlight important...
|
by: BLUEPANDA |
last post by:
At BluePanda Dev, we're passionate about building high-quality software and sharing our knowledge with the community. That's why we've created a SaaS starter kit that's not only easy to use but also...
|
by: Rahul1995seven |
last post by:
Introduction:
In the realm of programming languages, Python has emerged as a powerhouse. With its simplicity, versatility, and robustness, Python has gained popularity among beginners and experts...
|
by: Johno34 |
last post by:
I have this click event on my form. It speaks to a Datasheet Subform
Private Sub Command260_Click()
Dim r As DAO.Recordset
Set r = Form_frmABCD.Form.RecordsetClone
r.MoveFirst
Do
If...
|
by: ezappsrUS |
last post by:
Hi,
I wonder if someone knows where I am going wrong below. I have a continuous form and two labels where only one would be visible depending on the checkbox being checked or not. Below is the...
|
by: jack2019x |
last post by:
hello, Is there code or static lib for hook swapchain present?
I wanna hook dxgi swapchain present for dx11 and dx9.
| |