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

推荐订阅源

博客园 - 叶小钗
云风的 BLOG
云风的 BLOG
G
Google Developers Blog
S
SegmentFault 最新的问题
罗磊的独立博客
Hugging Face - Blog
Hugging Face - Blog
美团技术团队
爱范儿
爱范儿
博客园 - 三生石上(FineUI控件)
H
Hackread – Cybersecurity News, Data Breaches, AI and More
D
DataBreaches.Net
F
Fortinet All Blogs
TaoSecurity Blog
TaoSecurity Blog
D
Docker
C
Cybersecurity and Infrastructure Security Agency CISA
K
Kaspersky official blog
宝玉的分享
宝玉的分享
腾讯CDC
Google Online Security Blog
Google Online Security Blog
Recorded Future
Recorded Future
T
The Exploit Database - CXSecurity.com
T
The Blog of Author Tim Ferriss
V
V2EX
S
Securelist
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
C
CERT Recently Published Vulnerability Notes
A
Arctic Wolf
Scott Helme
Scott Helme
L
LINUX DO - 热门话题
Y
Y Combinator Blog
P
Proofpoint News Feed
T
Tor Project blog
AWS News Blog
AWS News Blog
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
The Last Watchdog
The Last Watchdog
博客园 - 聂微东
T
Threat Research - Cisco Blogs
B
Blog
Attack and Defense Labs
Attack and Defense Labs
L
Lohrmann on Cybersecurity
C
CXSECURITY Database RSS Feed - CXSecurity.com
阮一峰的网络日志
阮一峰的网络日志
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
IT之家
IT之家
N
News and Events Feed by Topic
博客园 - 司徒正美
H
Help Net Security
C
Cisco Blogs
C
Check Point Blog
S
Secure Thoughts

博客园 - Jeff.Yang

关于Cache 不同数据库系统NULL判断的一点细节 关于 SQL CLR 几点细节 SkipLinkText会惹祸 - Jeff.Yang - 博客园 关于TextBox的ReadOnly - Jeff.Yang - 博客园 Repeater中FooterTemplate中的控件提取 控件存在检测 SQL Server 2000与IIS6 ASP.NET 2.0的URL摘取 VS2005和.NET 2.0真搞 MySQL远程管理 SQL Server 异机迁移 Oracle时间处理 命名颜色可能不唯一 SQL Server 2005 版本号 IE默认设置 Safe360 BUG TP-Link TL-WN620G无线网卡的WPA2协议支持 MySQL 数据迁移
ASP.NET Profile之惑
Jeff.Yang · 2007-05-13 · via 博客园 - Jeff.Yang

在Global.asax的Session_Start中调用Profile,则找不到对象,移到Default.aspx.cs中操作成功。

但出现怪现象:

验证为Windows,User.Identity.Name中含有“\”,Membership.CreateUser中的用户名可以任意指定,如“\”后的一段,但添加Profile时自动将User.Identity.Name整体作为用户名加入,不过却只是加入到aspnet_Users表,并未加入到aspnet_Membership表,这与Membership.CreateUser的行为并不一致。要删除这个新加的User,可以用Membership.DeleteUser(User.Identity.Name, true),注意第二个参数必须给出。

posted on 2007-05-13 22:27  Jeff.Yang  阅读(451)  评论(0)    收藏  举报