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

推荐订阅源

月光博客
月光博客
MyScale Blog
MyScale Blog
博客园 - Franky
The Cloudflare Blog
IT之家
IT之家
Blog — PlanetScale
Blog — PlanetScale
博客园 - 聂微东
WordPress大学
WordPress大学
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
T
The Blog of Author Tim Ferriss
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
罗磊的独立博客
Google DeepMind News
Google DeepMind News
P
Proofpoint News Feed
Martin Fowler
Martin Fowler
aimingoo的专栏
aimingoo的专栏
J
Java Code Geeks
腾讯CDC
雷峰网
雷峰网
Microsoft Azure Blog
Microsoft Azure Blog
G
Google Developers Blog
博客园 - 【当耐特】
美团技术团队
云风的 BLOG
云风的 BLOG

博客园 - 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)    收藏  举报