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 1937
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: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
| |