B
Billy
My domain is all Windows 2003 with AD and I can get the domain name of
'domain.com' using 'system.management' but I need the domain name
without the .com and I do not want to rip strings to achieve it. Can
anyone tell me how to get the current domain name without the .com at
the end?
Regards
Billy
P.S. The reason I need it like this is because when you perform the
call IPrincipal.IsInRole (ASP.NET C#) you have to supply the group name
in the format of '<domain\group>' and the domain should not have .com
on it!
'domain.com' using 'system.management' but I need the domain name
without the .com and I do not want to rip strings to achieve it. Can
anyone tell me how to get the current domain name without the .com at
the end?
Regards
Billy
P.S. The reason I need it like this is because when you perform the
call IPrincipal.IsInRole (ASP.NET C#) you have to supply the group name
in the format of '<domain\group>' and the domain should not have .com
on it!