Ask Learn
Preview
Please sign in to use this experience.
Sign inThis browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
It is often useful to know how an ASP.NET Web page was invoked: whether by an original request (an HTTP GET), a postback (an HTTP POST), a cross-page post from another page (an HTTP POST), or a transfer from another page using the Transfer method or using a callback from the browser. The Page class exposes a set of properties that you can use to determine how a page was invoked.
Examine the values of the following Page class properties, and then refer the table to determine how the page was invoked:
The following table lists ways in which a page can be invoked and the corresponding Page property values.
Invocation method |
Property values |
---|---|
Original request |
|
Postback |
|
Cross-page posting |
|
Server transfer |
|
Callback |
|
Note
Be sure you test the IsCrossPagePostBack property of the page that is referenced in PreviousPage. The IsCrossPagePostBack property of the current page always returns false.
Cross-Page Posting in ASP.NET Web Pages
Implementing Client Callbacks Programmatically Without Postbacks in ASP.NET Web Pages
Please sign in to use this experience.
Sign in