private static bool GetRoleVisible(string xmLproperties) { var genprop = GenXmlFunctions.GetGenControlPropety(xmLproperties, "viewinrole"); if (genprop == "") { return(true); } var objUser = UserController.GetCurrentUserInfo(); return(objUser.IsInRole(genprop)); }