LoginCredential SessLogin = new LoginCredential(); SessLogin.ModuleAllowed = new List<secmodule>(); SessLogin.RLPEmpId ="V0008293" SessLogin.RLPEmpName = "Santosh" SessLogin.RLPEmpLocation = "India" Var tempTop = somedatatable; SessLogin.ModuleAllowed = tempTop; Session["SessLogin"] = SessLogin;= SessLogin ---below two class used to assign value below storing in session. public class LoginCredential { public string RLPEmpId { get; set; } public string RLPEmpName { get; set; } public string RLPEmpLocation { get; set; } public List <secmodule>; ModuleAllowed { get; set; } } public class SECModule { [Key] [DatabaseGeneratedAttribute(DatabaseGeneratedOption.Identity)] public int ID { get; set; } public int ParentID { get; set; } public string ModuleName { get; set; } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)