查看: 1085|回复: 2
|
如何display windows login name in ASP.NET
[复制链接]
|
|
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Dim username As String
username = User.Identity.Name
Label3.Text = username
End Sub
请问我的code有什么问题?为什么Label3是空的? |
|
|
|
|
|
|
|
发表于 1-8-2006 06:24 PM
|
显示全部楼层
framework 2.0 吗?
- <asp:LoginName ID="LoginName1" runat="server" />
复制代码 |
|
|
|
|
|
|
|

楼主 |
发表于 2-8-2006 10:04 AM
|
显示全部楼层
是framework 1.1  |
|
|
|
|
|
|
| |
本周最热论坛帖子
|