Cross Page Posting In ASP.NET

Each web server control in ASP.NET possesses its own set of properties and events that can be utilized to enhance the functionality and interactivity of web pages. By default, when an event associated with a control is triggered, the webpage undergoes a postback process, returning to the same page and initiating a round-trip cycle, which is a fundamental aspect of ASP.NET page processing.

example
if (Page.PreviousPage != null) { Button btn = (Button)(Page.PreviousPage.FindControl("button1")); Label1.Text = btn.Text; }

In Cross page posting , on click of a button there would be no return trip.

HTTP 302 status code

However, there are scenarios where you may require the capability to post one page to another page. In such cases, you have the option to configure specific controls on the page to redirect the post to a different target page using an HTTP 302 status code, typically achieved through the use of the Response.Redirect method. This concept, known as cross-page posting, allows for the submission of controls from one page (source.aspx) to another page (destination.aspx) and the subsequent retrieval of the control values from the source page (source.aspx) in the destination page (destination.aspx). In essence, cross-page posting facilitates the seamless transfer of web page and its associated control values to another web page, enabling efficient data exchange and interaction between pages within an ASP.NET application.