private void DELRow(long sponsorId) { var oSponsor = new CSBC.Components.Season.clsSponsors(); try { //need to implement method //oSponsor.DELRow(iMaster.SponsorId, Session["CompanyID"], Session["SeasonID"]); } catch (Exception ex) { ErrorMessage = "DELRow::" + ex.Message; } }
private void SponsorColors(Int32 SponsorID) { var oColors = new CSBC.Components.Season.clsSponsors(); DataTable rsData = default(DataTable); lblColors.Text = ""; try { rsData = oColors.SponsorsColor(SponsorID, (int)Session["CompanyID"], (int)Session["SeasonID"]); if (rsData.Rows.Count > 0) { DataRow row = rsData.Rows[0]; lblColors.Text = (string)row["Color1Name"]; if (lblColors.Text != "" & (string)row["Color2Name"] != "") lblColors.Text = lblColors.Text + ", "; lblColors.Text = lblColors.Text + (string)row["Color2Name"]; } } catch (Exception ex) { lblError.Text = "SponsorColors::" + ex.Message; } finally { oColors = null; } }