Context.Items.Contains : Context « Session Cookie « ASP.Net






Context.Items.Contains

<%@ 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>
           
       








Related examples in the same category

1.Context.Items
2.Context.Timestamp
3.Context.SkipAuthorization
4.Context.IsDebuggingEnabled
5.Context.IsCustomErrorEnabled
6.Context.AddError
7.Context.Error
8.Context.Trace.IsEnabled
9.Context.User.Identity.IsAuthenticated
10.Context.GetConfig