473,396 Members | 2,059 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Web Controls and the Back button

A web control event is executed on the server and the form is posted back to
the browser, thus automatically adding the previous state of the page
(before the web control event is fired) to the browser's history. Is there
any way to prevent this ?
Nov 18 '05 #1
3 1057
Are you trying to prevent you page from being cached by the browser?
For example, if the user hit the "Back" button after a postback, you
want the browser to return a "Page has been expired" message?

Tommy,

"Jeremy" <je*************@blueyonder.co.yk> wrote in message news:<uR**************@TK2MSFTNGP10.phx.gbl>...
A web control event is executed on the server and the form is posted back to
the browser, thus automatically adding the previous state of the page
(before the web control event is fired) to the browser's history. Is there
any way to prevent this ?

Nov 18 '05 #2
I'm trying to prevent a page update being cached, so if a user hits a link
on page A and enters my webform page B, hits a few buttons (each of which
posts back), and then hits Back, he is taken back to the page A.

"Tommy" <We**********@Hotmail.com> wrote in message
news:a8**************************@posting.google.c om...
Are you trying to prevent you page from being cached by the browser?
For example, if the user hit the "Back" button after a postback, you
want the browser to return a "Page has been expired" message?

Tommy,

"Jeremy" <je*************@blueyonder.co.yk> wrote in message

news:<uR**************@TK2MSFTNGP10.phx.gbl>...
A web control event is executed on the server and the form is posted back to the browser, thus automatically adding the previous state of the page
(before the web control event is fired) to the browser's history. Is there any way to prevent this ?

Nov 18 '05 #3
The answer, as I found out much later, is to turn on Smart Navigation in
form B

"Jeremy" <je*************@blueyonder.co.yk> wrote in message
news:ub**************@TK2MSFTNGP09.phx.gbl...
I'm trying to prevent a page update being cached, so if a user hits a link
on page A and enters my webform page B, hits a few buttons (each of which
posts back), and then hits Back, he is taken back to the page A.

"Tommy" <We**********@Hotmail.com> wrote in message
news:a8**************************@posting.google.c om...
Are you trying to prevent you page from being cached by the browser?
For example, if the user hit the "Back" button after a postback, you
want the browser to return a "Page has been expired" message?

Tommy,

"Jeremy" <je*************@blueyonder.co.yk> wrote in message

news:<uR**************@TK2MSFTNGP10.phx.gbl>...
A web control event is executed on the server and the form is posted back to the browser, thus automatically adding the previous state of the page
(before the web control event is fired) to the browser's history. Is there any way to prevent this ?


Nov 18 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: .Net Newbie | last post by:
I am relatively new to .Net and have been coding an intranet site for my employer for a couple of months. I am currently stuck coding in a text-editor called EditPlus without access to the VS.Net...
2
by: sk2000 | last post by:
Hello All, I'm creating a web form with user controls in different HTML table cells (User Controls are place in the table cells at design time ). For some reason none of the Button type...
3
by: Steve Drake | last post by:
All, I have a CONTROL that contains 1 control (Control ONE), the 1 control that it can contain 1 or 2 control (Control A and B). Control A, raises and event and Control ONE receives this event...
8
by: Donald Xie | last post by:
Hi, I noticed an interesting effect when working with controls that are dynamically loaded. For instance, on a web form with a PlaceHolder control named ImageHolder, I dynamically add an image...
1
by: Angel | last post by:
I have added controls to the placeholder control. All the controls that were added have EnableViewState = true including the placeholder. One of the controls has a button that performs a postback. My...
5
by: Brian Kitt | last post by:
I have a C# application that builds dynamic HTML and renders it. Because it is rendered in this way, the input controls are not server controls. I write the entire page, which has a variable...
22
by: Mr Newbie | last post by:
I was thinking about developing a workflow application yesterday and was musing over the different approaches than one could take in restricting specific actions on a ticket( Form ) at any said...
5
by: Dennis Fazekas | last post by:
Greetings, I am creating a web form which will all the user to add an unlimited number of email addresses. Basically I have 3 buttons, "Add Another Email", "-" to remove, and a "Save" button....
1
by: Ramesh | last post by:
Hello all, I have a form in which I'm trying to load a user control depending on some user choice, and my control's events are not firing properly. Here's a completely stripped down repro of the...
2
by: =?Utf-8?B?VG9u?= | last post by:
Hello, I want to understand teh benefits of ajax technology. Does anyone has a good website where AJAX EXTENSIONS is worked out so I really understand it. There a 2 main questions: 1) How about...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
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...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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...
0
Oralloy
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,...
0
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.