R
Ryan
Hi Guys.
I'm having problem getting Get.Roles to work on my production environment
(Multiple Domains) I have it working locally on my domain test environment
however.
When executing via a page on asp.net on the production box (client machine)
Response.Write(Environment.UserDomainName)
The Domain returns BRISBANE .
In my production envirnonment to get roles I used the below statement which
worked correctly.
Response.Write(Page.User.IsInRole(Environment.UserDomainName & "\testman"))
this returned - ADVENTURE-WORKS\testman
The Primary Domain in the production envirnonment is UrbisJHD.COM so calling
"Environment.UserDomainName" would be incorrect?
I have therefore tried to use UrbisJHD\GroupName on the production
environment?
I have tried a number of strings :
sPath2 = "UrbisJHD.com\UrbisJHD Melbourne\Knowledge
Management\Groups\Lasso - PAVals"
sPath3 = "UrbisJHD.com\Knowledge Management\Groups\Lasso - PAVals"
sPath4 = "UrbisJHD Melbourne\Knowledge Management\Groups\Lasso - PAVals"
sPath5 = "UrbisJHD\Knowledge Management\Groups\Lasso - PAVals"
sPath6 = "UrbisJHD\Lasso - PAVals"
If Page.User.IsInRole(sPath2) = True Then
Response.Write("<P><b>Lasso PAVals</b></P")
GroupCount = GroupCount + 1
Else
Thanks for your help
Ryan.
I'm having problem getting Get.Roles to work on my production environment
(Multiple Domains) I have it working locally on my domain test environment
however.
When executing via a page on asp.net on the production box (client machine)
Response.Write(Environment.UserDomainName)
The Domain returns BRISBANE .
In my production envirnonment to get roles I used the below statement which
worked correctly.
Response.Write(Page.User.IsInRole(Environment.UserDomainName & "\testman"))
this returned - ADVENTURE-WORKS\testman
The Primary Domain in the production envirnonment is UrbisJHD.COM so calling
"Environment.UserDomainName" would be incorrect?
I have therefore tried to use UrbisJHD\GroupName on the production
environment?
I have tried a number of strings :
sPath2 = "UrbisJHD.com\UrbisJHD Melbourne\Knowledge
Management\Groups\Lasso - PAVals"
sPath3 = "UrbisJHD.com\Knowledge Management\Groups\Lasso - PAVals"
sPath4 = "UrbisJHD Melbourne\Knowledge Management\Groups\Lasso - PAVals"
sPath5 = "UrbisJHD\Knowledge Management\Groups\Lasso - PAVals"
sPath6 = "UrbisJHD\Lasso - PAVals"
If Page.User.IsInRole(sPath2) = True Then
Response.Write("<P><b>Lasso PAVals</b></P")
GroupCount = GroupCount + 1
Else
Thanks for your help
Ryan.