Posted on: 4/17/2015 8:31:24 PM | Views : 689

I am having issues learning how to establish a Roles Function within this code that will assigned all Windows Authentication Users to a Role that is located in my SQL Database Table. 
This is what I have so far. 
namespace TMC { public class TMCUser { public int UserId { get; set; } public string Name { get; set; } public string UserName { get; set; } public string RoleName { get; set; } public Boolean IsActive { get; set; } Connection Conn = new Connection(); public TMCUser() { } public TMCUser(string userName) { using (SqlConnection conn = Conn.GetUtilitiesConnection) using (SqlCommand cmd = new SqlCommand("HBCC.usp_SelActiveUser", conn)) { cmd.CommandType = CommandType.StoredProcedure; cmd.Parameters.Add("@UserName", ...

Go to the complete details ...