private void LoadList()
        {
            UserPageManager ObjUserPageManager = new UserPageManager();

            List <UserDTO> LstUsr = new List <UserDTO>();

            LstUsr = ObjUserPageManager.GetUtenti();
            StringBuilder Sb = new StringBuilder();

            foreach (UserDTO CurrUsr in LstUsr)
            {
                //Sb.Append("<tr class='odd gradeA'><td>" + CurrUsrDto.Name + "</td><td>" + CurrUsrDto.UserId + "</td><td>" + CurrUsrDto.Role + "</td><td class='center'>" + CurrUsrDto.Enabled + "</td><td class='center'><a class='btn btn-primary' href='UserDetail.aspx?Id=" + CurrUsrDto.IdUser + "'><i class='fa fa-edit'></i> Update</a> <a class='btn btn-danger' href='javascript:ShowDelForm(" + CurrUsrDto.IdUser + ");'><i class='fa fa-times'></i> Delete</a></td></tr>");

                Sb.Append("<tr class='odd gradeA'>");

                Sb.Append("<td style='width:100px'>" + CurrUsr.name + "</td>");
                Sb.Append("<td>" + CurrUsr.email + "</td>");
                Sb.Append("<td>" + CurrUsr.role + "</td>");
                Sb.Append("<td class='center'>" + CurrUsr.enabled + "</td>");

                Sb.Append("<td class='center'>");
                Sb.Append("<a class='btn btn-primary' href='UserDetail.aspx?Id=" + CurrUsr.id + "'><i class='fa fa-edit'></i> Update</a> ");
                //Sb.Append("<a class='btn btn-danger' href='javascript:ShowDelForm(" + CurrUsr.id + ");'><i class='fa fa-times'></i> Delete</a>");
                Sb.Append("</td>");

                Sb.Append("</tr>");
            }

            LitContentTable.Text = Sb.ToString();
        }
        private UserDTO GetLoginUser()
        {
            UserPageManager ObjUserPageManager = new UserPageManager();
            string          IdUsr  = System.Web.HttpContext.Current.Request.Cookies["IdUser"].Value;
            UserDTO         LogUsr = ObjUserPageManager.GetUtente(Convert.ToInt32(IdUsr));

            return(LogUsr);
        }