Hello,
Currently, I accede to my roles with :
What is the difference between this code and CheckAccessHelper ???
For me this code is more easy !
CheckAccessHelper is not dynamic (must be regenerated class when adding a role)
Second question :
I would like to add someone to a group.
I don't no when a person have delegate or not ...
Best regards,
Cédric
Currently, I accede to my roles with :
<connectionStrings>
<add name="NetSqlAzManRoleProvider" connectionString="Data Source=*****;Initial Catalog=NetSqlAzManStorage;Integrated Security=True" providerName="System.Data.SqlClient"/>
</connectionStrings>
<roleManager defaultProvider="NetSqlAzManRoleProvider" enabled="true" cacheRolesInCookie="false" cookieName=".ASPROLES" cookieTimeout="30" cookiePath="/" cookieRequireSSL="false" cookieSlidingExpiration="true" cookieProtection="All">
<providers>
<clear/>
<add
name="NetSqlAzManRoleProvider"
type="NetSqlAzMan.Providers.NetSqlAzManRoleProvider"
connectionStringName="NetSqlAzManRoleProvider" storeName="*****" applicationName="****" userLookupType="LDAP" defaultDomain="****" UseWCFCacheService="False" />
</providers>
</roleManager>
Code Behind :string[] roles = System.Web.Security.Roles.GetRolesForUser();
Fist question :What is the difference between this code and CheckAccessHelper ???
For me this code is more easy !
CheckAccessHelper is not dynamic (must be regenerated class when adding a role)
Second question :
I would like to add someone to a group.
I don't no when a person have delegate or not ...
Best regards,
Cédric