Context.Items : Context « Development « ASP.NET Tutorial






<%@ Page Language="vb" %>
<html>
   <head>
      <script runat="server">
         Sub Page_Load()
      Context.Items("Foo")="Bar"
      Context.Items.Add("Bar","Foo")  
        Message.Text = "Context.Items.Contains(""Foo"") is " & _
               Context.Items.Contains("Foo")  
         End Sub
      </script>
   </head>
<body>
   <asp:label id="Message" runat="server"/>
</body>
</html>








9.8.Context
9.8.1.Context.User.Identity.Name
9.8.2.Context.AddError
9.8.3.Context.GetConfig
9.8.4.Context.IsCustomErrorEnabled
9.8.5.Context.IsDebuggingEnabled
9.8.6.Context.Items
9.8.7.Context.SkipAuthorization
9.8.8.Context.Timestamp
9.8.9.Context.Trace.IsEnabled