
246
|
Chapter 12: The Page Class
This is the Title of the Book, eMatter Edition
Copyright © 2008 O’Reilly & Associates, Inc. All rights reserved.
In this chapter, we’ll use the following code listing as the basis for most exam-
ples. Unless otherwise noted, each example will consist of just the Page_Load
event handler for that particular example. Any displayed output messages or
return values will be shown as the Text property of the ASP.NET Label control
named Message or displayed by calling Response.Write:
<%@ Page Language="vb" %>
<html>
<head>
<script runat="server">
Sub Page_Load( )
'Example code will go here
End Sub
</script>
</head>
<body>
<asp:label id="Message" runat="server"/>
</body>
</html>
Properties Reference
Application
HttpApplicationState = Page.Application
Returns an instance of the HttpApplicationState class, which is the equivalent of
the ASP intrinsic Application object. An instance of the
HttpApplicationState
class contains global information that can be shared across multiple sessions and
requests within an ASP.NET application. For more information on the
HttpApplicationState class and its members, see Chapter 13.
Parameter
HttpApplicationState
A variable of type HttpApplicationState that receives the instance of the
HttpApplicationState class.
Table 12-2. ASP.NET equivalents of ASP intrinsic objects
ASP object Equivalent ASP.NET class Returned by
Application HttpApplication and HttpApplicationState ...