protected void btnViewSummary_Click(object sender, EventArgs e) { DQIProfileBiz rep = new DQIProfileBiz(); string dqi = rep.DQIValue(); int custCount = rep.CustCount(Session["EntityName"].ToString()); lblCustCount.Text = custCount.ToString(); lblDQI.Text = dqi.ToString(); //this.Master.DQIValue = dqi; //this.Master.CustCount = custCount; }
protected void Page_Load(object sender, EventArgs e) { if (!this.IsPostBack) { //lblCurrentUsers.Text = "5"; //Convert.ToString(mp.GetNumberOfUsersOnline()); //lblNoOfCustomers.Text = "2,500,000";//String.Format("{0:#,###,###}", Convert.ToInt32(mp.getNoOfCustomers())); //"6,897,752"; //lblDataQuality.Text = "34.7";//mp.getDQIPercentage(); DQIProfileBiz rep = new DQIProfileBiz(); string dqi = rep.DQIValue(); int custCount = rep.CustCount("UBA_CDMA_MAIN"); lblDataQuality.Text = dqi.ToString(); lblNoOfCustomers.Text = custCount.ToString(); string path = HttpContext.Current.Request.Url.AbsolutePath; //int roleID = 0; try { if (HttpContext.Current.User.Identity.IsAuthenticated) { var identity = ((CustomPrincipal)HttpContext.Current.User).CustomIdentity; this.lblRole.Text = identity.UserRoleName; // getCustomIdentities(usrName, "RoleName"); this.lblProfileName.Text = identity.DisplayName; // getCustomIdentities(usrName, "DisplayName"); // string getRoleID = identity.DisplayName;// getCustomIdentities(usrName, "RoleID"); //Generate menu. callMenu(identity.UserRoleId); //if (!checkCurrentURL(path, identity.UserRoleId)) //{ // Response.Redirect("~/Default.aspx?msg=The Page is unavailable."); //} } } catch (Exception ex) { //ex.Message.ToString(); //throw ex; // Response.Redirect("../Default.aspx?msg=The Page is unavailable."); } } //else //{ // Response.Redirect("../CDMA/Login?msg=You have been logged out,Please login again."); //} }