Re: Redirect to multiple pages without displaying each page...
From: Marc Cramer (cramer236_at_comcast.net)
Date: 12/17/04
- Previous message: David Browne: "Re: Cascade updates on primary keys.."
- In reply to: Coleen: "Re: Redirect to multiple pages without displaying each page..."
- Messages sorted by: [ date ] [ thread ]
Date: 17 Dec 2004 13:36:34 -0800
Hello,
Sorry I missed the first question about not displaying the page...
try something like this
C#
private void Page_Load(object sender, System.EventArgs e)
{
// Put user code to initialize the page here
if(Page.IsPostBack==false)
{
// check to see if we have our flag to indicate auto redirect...
if(Request.QueryString["Flag"]!=null)
{
// call the processing methods here...
DoStuff();
// go to next page...
Response.Redirect("NextPage.aspx", true);
}
// we got here so handle as a normal diplayed page...
}
}
VB.NET
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load
'Put user code to initialize the page here
If Page.IsPostBack = False Then
' check to see if we have our flag to indicate auto redirect...
If Not Request.QueryString("Flag") Is Nothing Then
' call the processing methods here...
DoStuff()
' go to next page...
Response.Redirect("NextPage.aspx", True)
End If
' we got here so handle as a normal diplayed page...
End If
End Sub
Marc
- Previous message: David Browne: "Re: Cascade updates on primary keys.."
- In reply to: Coleen: "Re: Redirect to multiple pages without displaying each page..."
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|