Hi Luke,
I need to create a dropdownlist with the users that have a specific role.
How would i do it since the roles are encrypted in the database?
I created a new data source and trying to read the users using linq to sql
newCustomerDataSourceDataContext db = new newCustomerDataSourceDataContext(ConfigurationController.SiteConfigurationController.GetSiteConnectionString(SiteNavigation.GetHost()));
List<string> SalesRepNames = new List<string>();
var q = from d in db.aspnet_UsersInRoles
where d.RoleID == " "
The underlined part is the problem. I can't campare them directly. How do i use the encrption key?
Thanks
|