ASP.NET Login控件
1.首先请检查Web.config中的authentication mode的值,它应设置为Forms。
<authentication mode="Forms"/>
2.在编程过程下,用户名可以用下面两个中的一个来引用:
Page.User.Identity.Name
HttpContext.Current.User.Identity.Name
posted on 2010-08-16 17:16 Henry_Wang 阅读(415) 评论(3) 编辑 收藏 举报