Get Domain Name From Url String C. -----It will give you DomainUserName. You can try this struserName RequestLogonUserIdentityName.
If sectonsLength 3 domain stringJoin sectons 1 2 return domain. Member thisUserDomainName. String sectons domainSplitnew char.
Var start doubleSlashesIndex -1.
String host RequestUrlHostToLower. -----It will give you DomainUserName. If trimmedStartsWithwww trimmed trimmedSubstringwwwLength. String sectons domainSplitnew char.