Example #1
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         GetMasterValues();
         //are there any entries not sent
         Encode en = new Encode();
         Exam_Entry_CountbyBoardList el1 = new Exam_Entry_CountbyBoardList();
         el1.Load_NotSent(SeasonCode.ToString(), Year.ToString()); //ie NOT sent
         if (el1.m_list.Count > 0)                                 //ie entries to send
         {
             SqlDataSource1.SelectCommand    = GetSummaryString();
             SqlDataSource1.ConnectionString = en.GetDbConnection();
             SqlDataSource1.DataBind();
         }
         else
         {
             Label_message.Text = "No Entries to Send";
         }
     }
 }