protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { using (sc_GetAvatars ga = new sc_GetAvatars()) { ga.GetFrontEndData(); if (ga.Tables.Count > 0 && ga.Tables[0].Rows.Count > 0) { Avatars = ga.Tables[0]; } } rptAvailableAvatars.DataSource = Avatars; rptAvailableAvatars.DataBind(); //using (GetEmployerConnString gecs = new GetEmployerConnString(EmployerID)) //{ // gecs.GetFrontEndData(); // if (gecs.Tables.Count > 0 && gecs.Tables[0].Rows.Count > 0) // { // ThisSession.CnxString = gecs.ConnectionString; using (sc_GetMemberAvatars gma = new sc_GetMemberAvatars()) { gma.CCHID = PrimaryCCHID; gma.GetData(ThisSession.CnxString); if (gma.Tables.Count > 0 && gma.Tables[0].Rows.Count > 0) { MemberAvatars = gma.Tables[0]; } } // } //} } }
protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { using (sc_GetAvatars ga = new sc_GetAvatars()) { ga.GetFrontEndData(); if (ga.Tables.Count > 0 && ga.Tables[0].Rows.Count > 0) Avatars = ga.Tables[0]; } rptAvailableAvatars.DataSource = Avatars; rptAvailableAvatars.DataBind(); //using (GetEmployerConnString gecs = new GetEmployerConnString(EmployerID)) //{ // gecs.GetFrontEndData(); // if (gecs.Tables.Count > 0 && gecs.Tables[0].Rows.Count > 0) // { // ThisSession.CnxString = gecs.ConnectionString; using (sc_GetMemberAvatars gma = new sc_GetMemberAvatars()) { gma.CCHID = PrimaryCCHID; gma.GetData(ThisSession.CnxString); if (gma.Tables.Count > 0 && gma.Tables[0].Rows.Count > 0) { MemberAvatars = gma.Tables[0]; } } // } //} } }