protected void Change_Status_Command(object sender, CommandEventArgs e)
        {
            string Student_Id = e.CommandArgument.ToString();

            if (e.CommandName == "1")
            {
                updaters.Student_Status(Student_Id, "0");
            }
            else
            {
                updaters.Student_Status(Student_Id, "1");
            }
            All_Students.DataSource = find.Student_All(Search_Console.Text);
            All_Students.DataBind();
        }
Example #2
0
        protected void Load_test_questions_Command(object sender, CommandEventArgs e)
        {
            string batch_test_id = e.CommandName.ToString();

            batch_test_id_fld.Value = batch_test_id;

            if (find.Giving_BATCH(batch_test_id).Rows.Count != 0)
            {
                All_Students.DataSource = find.Giving_BATCH(batch_test_id);
                All_Students.DataBind();

                string Batch_id = find.Batch_Test(batch_test_id).Rows[0]["Batch_ID"].ToString();
                string Test_id  = find.Batch_Test(batch_test_id).Rows[0]["Test_ID"].ToString();

                if ((find.Batches(Batch_id).Rows.Count != 0) && (find.Test(Test_id).Rows.Count != 0))
                {
                    //Test_Details.Text = "Test :- " + find.Test(Test_id).Rows[0]["Name"].ToString() + " || Batch :- " + find.Batches(Batch_id).Rows[0]["Title"].ToString();
                }
            }
            else
            {
            }
        }
 protected void Find_Btn_Click(object sender, EventArgs e)
 {
     All_Students.DataSource = find.Student_All(Search_Console.Text);
     All_Students.DataBind();
 }
 protected void Page_Load(object sender, EventArgs e)
 {
     All_Students.DataSource = search.Students();
     All_Students.DataBind();
 }