User.Identity.Name 取得目前登入使用者
寫太少,老是忘記,記錄一下... = =
User.Identity.Name 可擷取目前登入的使用者帳戶資訊
把此資訊丟到 label 中 >> getUserName.Text = User.Identity.Name
還有 get.User.Identity.Name: ASP.NET 2.0如何取得目前登入的使用者(Page.User.Identity.Name)
另外,官方有這篇:如何使用 ASP,擷取有關 IIS 中的 Web 使用者的驗證資訊
1
<%
2
Dim strUser
3
strUser = Request.ServerVariables("LOGON_USER")
4
Response.Write strUser
5
%>

2

3

4

5
