⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 global.asax

📁 微软的.NET论坛的源代码(COOL!!!)
💻 ASAX
字号:
<%@ Import Namespace="AspNetForums" %>

<script language="C#" runat="server">

    //*********************************************************************
    //
    // Application_AuthenticateRequest Event
    //
    // If the client is authenticated with the application, then determine
    // which security roles he/she belongs to and replace the "User" intrinsic
    // with a custom IPrincipal security object that permits "User.IsInRole"
    // role checks within the application
    //
    // Roles are cached in the browser in an in-memory encrypted cookie.  If the
    // cookie doesn't exist yet for this session, create it.
    //
    //*********************************************************************
    void Application_AuthenticateRequest(Object sender, EventArgs e) {
      UserRoles forumRoles = new UserRoles();
      forumRoles.GetUserRoles();
    }

</script>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -