Wednesday, July 3, 2013

asp.net / vb.net - To get the domain name and user name from windows logon in asp.net

To get the domain name and user name from windows logon in asp.net

Dim arrName() As String = Page.User.Identity.Name.Split("\")
txtUsername.Text = arrName(1)
txtDomain.Text = Page.User.Identity.Name

No comments:

Post a Comment