惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

小众软件
小众软件
博客园 - Franky
罗磊的独立博客
G
Google Developers Blog
The GitHub Blog
The GitHub Blog
P
Proofpoint News Feed
Recent Announcements
Recent Announcements
V
V2EX
F
Fortinet All Blogs
阮一峰的网络日志
阮一峰的网络日志
Blog — PlanetScale
Blog — PlanetScale
月光博客
月光博客
U
Unit 42
GbyAI
GbyAI
A
About on SuperTechFans
WordPress大学
WordPress大学
Engineering at Meta
Engineering at Meta
雷峰网
雷峰网
Microsoft Azure Blog
Microsoft Azure Blog
Martin Fowler
Martin Fowler
D
DataBreaches.Net
The Cloudflare Blog
H
Hackread – Cybersecurity News, Data Breaches, AI and More
MongoDB | Blog
MongoDB | Blog

博客园 - 雪无止境

WEB 架构布置 YouTube的系统架构 [原创]如何得到网站的最后更新日期 首例全国性电子商务规范将出台 Ajax 及 JavaScript 在各浏览器下的兼容性问题 安装Microsoft VS2003“安装程序检测到另一个程序要求计算机重新启动 ASP.Net 注册组件 如何用正确的方法来写出质量好的软件的75条体会 ASP.NET 生成图形验证码 (C#版本) [原创]让C#驱动机器,为我们奏响电子音乐 [原创]在ASP.NET中为图形加水印的方法 (C#版本) IE 与 FireFox 的 showModalDialog 用户 'sa' 登录失败。原因: 未与信任 SQL Server 连接相关联 常用SQL ASP获取即时ID值(自动编号) ASP ADOX 使用范例 [原创]重载、继承 [原创]ASP开发工具论 [原创]用Data Shape 来取关系数据库的多表记录
[原创]基于角色的Roles
雪无止境 · 2005-03-07 · via 博客园 - 雪无止境

    Sub Application_AuthenticateRequest(ByVal sender As ObjectByVal e As EventArgs)
        
' 尝试对使用进行身份验证时激发
        If Request.IsAuthenticated Then
            
If User.Identity.Name.ToLower = "a" Then
                
Dim roles() As String = {"administrator""normal"}
                Context.User 
= New GenericPrincipal(User.Identity, roles)
            
End If
        
End If
    
End Sub