private void Student_Payment_Load(object sender, EventArgs e)
        {
            DataTable dt;

            dt = bl.GetStudentDetails(stdid);
            if (dt.Rows.Count != 0)
            {
                textBox1.Text = dt.Rows[0]["StudentId"].ToString();
                textBox2.Text = dt.Rows[0]["Firstname"].ToString();
                textBox5.Text = dt.Rows[0]["Total"].ToString();
                textBox6.Text = dt.Rows[0]["Paid"].ToString();
                textBox7.Text = dt.Rows[0]["Due"].ToString();
            }
            else
            {
                MessageBox.Show("Invalid Student ID");
            }
        }
Exemple #2
0
        public void studentDetails()
        {
            DataTable dt;

            dt = bl.GetStudentDetails(stdid);
            if (dt.Rows.Count != 0)
            {
                textBox1.Text        = dt.Rows[0]["StudentId"].ToString();
                textBox2.Text        = dt.Rows[0]["Firstname"].ToString();
                textBox3.Text        = dt.Rows[0]["Lastname"].ToString();
                textBox4.Text        = dt.Rows[0]["Mobile"].ToString();
                textBox5.Text        = dt.Rows[0]["EmailId"].ToString();
                dateTimePicker1.Text = dt.Rows[0]["DOJ"].ToString();
                textBox6.Text        = dt.Rows[0]["Password"].ToString();
                richTextBox1.Text    = dt.Rows[0]["Address"].ToString();
                textBox7.Text        = dt.Rows[0]["Total"].ToString();
                textBox8.Text        = dt.Rows[0]["Paid"].ToString();
                textBox9.Text        = dt.Rows[0]["Due"].ToString();
            }
            else
            {
                MessageBox.Show("Invalid Student ID");
            }
        }