6.7. Page class
As we already know, the Page object is created by ASP.NET in response to a web page request. In this section, we will learn about the main properties of the Page class. They are the following.
Application Contains the Application object for the current request.
Cache Contains the Cache object that is used to store the page for subsequent requests.
ClientTarget Allows us to specify how a page renders for particular browsers.
ErrorPage Indicates the page to which the request browser should be redirected in the event of an unhandled page exception.
IsPostBack Indicates whether or not the page is being loaded and accessed for the first time.
IsValid Indicates whether or not page validation has succeeded.
Request Contains the Request ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access