RE: IE Page caching

From: MSFT (lukezhan_at_online.microsoft.com)
Date: 12/19/03


Date: Fri, 19 Dec 2003 08:33:14 GMT

And here is a tested solution for ASPX:

Webform1:

<%@ Page language="c#" Codebehind="WebForm1.aspx.cs"
AutoEventWireup="false" Inherits="WebApplication8.WebForm1" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
        <HEAD>
                <title>WebForm2</title>
                <meta name="GENERATOR" Content="Microsoft Visual Studio .NET 7.1">
                <meta name="CODE_LANGUAGE" Content="C#">
                <meta name="vs_defaultClientScript" content="JavaScript">
                <meta name="vs_targetSchema"
content="http://schemas.microsoft.com/intellisense/ie5">
                <script language="javascript">

function b() {
window.open("webform2.aspx","_self",null,true);
}
                </script>
        </HEAD>
        <body MS_POSITIONING="GridLayout">
                <form id="Form1" method="post" runat="server">
                        <INPUT id="button2" onclick="b();" type="button" value="Button">
                </form>
        </body>
</HTML>

In webform2:

private void Page_Load(object sender, System.EventArgs e)
                {
                        Response.Redirect ("WebForm3.aspx");
                        }

After you click the button on Webform1, the browser will open webform3 and
the Back button is disabled.

Hope this help,

Luke
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)



Relevant Pages

  • Re: hidden field options
    ... and in your HTML you have ... protected HiddenField f; ... you should be able to reference it in the WebForm1 and WebForm2. ... How do I reference hdnSessionId from within ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Newbie Question
    ... HTML ... Private Sub Button1_Click(ByVal sender As System.Object, ... from WebForm1 to WebForm2 but Im sure this is not the "right way". ...
    (microsoft.public.dotnet.framework.aspnet)
  • Code Behind protection level error
    ... code was working in the HTML page: ... private void btnSignIn_Click(object sender, System.EventArgs e) ... Compiler Error Message: CS0122: ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: I have solved my problem in some diffrend way...
    ... refreshing datagrid(after I add new record ID is taken from dataset ... private void Page_Load(object sender, System.EventArgs e) ... HTML ...
    (microsoft.public.dotnet.framework.aspnet.datagridcontrol)
  • Re: Response Use MailTo
    ... /// Summary description for WebForm1. ... private void Page_Load ... // Put user code to initialize the page here ... This call is required by the ASP.NET Web Form Designer. ...
    (microsoft.public.dotnet.general)