2009-08-03 82 views

回答

1

您是否使用ASP.NET Membership Provider?那么它会是Profile.UserId。

您是否创建了自己的会员系统?

您是否在谈论获取Windows用户? 我认为你可以使用:

Request.ServerVariables["LOGON_USER"] 
+0

没有使用ASP.NET会员提供程序........ 我想从我的系统登录ID .. – Kushal 2009-08-03 06:41:50

0
I got the answer.and thanks for helping me... 

    Dim strUserId As String 
    Dim aryUserId As String() 
    strUserId = HttpContext.Current.Request.LogonUserIdentity.Name 
    aryUserId = strUserId.Split("\") 
    Response.write(aryUserId(1)) 
相关问题