hi, i am using a sharepoint portal over a computer. how i can obtain domain of that computer.
A:
You can write your own WebPart and that WebPart can utilize System.DirectoryServices.ActiveDirectory.Domain with code that looks like -
Domain domain = Domain.GetCurrentDomain();
output.write( domain.Name );
Something like that should work.
hagrin
2010-08-17 19:05:55