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






<%@ Page Language="vb" %>
<html>
   <head>
      <script runat="server">
  Sub Page_Load()
     Dim i As Integer
           Dim nv As NameValueCollection
           nv = Context.GetConfig("appSettings")
           For i = 0 To nv.Count - 1
              Response.Write(nv.GetKey(i) & " = " & nv(i) & "<br/>")
           Next
  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