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
Dim arrName() As String = Page.User.Identity.Name.Split("\")
txtUsername.Text = arrName(1)
txtDomain.Text = Page.User.Identity.Name
No comments:
Post a Comment