protected void BtnAdd_Click(object sender, EventArgs e)
 {
     strmonth = DateTime.Now.ToString("MMMM");
     dt6      = obj.CheckStudentFee(Convert.ToInt32(ddnstudent.SelectedValue), txtdate.Text, strmonth);
     if (dt6.Rows.Count > 0)
     {
         lblmsg.Text    = "Data Already Exist";
         BtnAdd.Enabled = false;
     }
     if (dt6.Rows.Count <= 0)
     {
         tf         = Convert.ToInt32(txttutionfee.Text);
         lf         = Convert.ToInt32(txtlibraryfee.Text);
         trnsprtfee = Convert.ToInt32(txttransportationfee.Text);
         other      = Convert.ToInt32(txtother.Text);
         i          = obj.AddFee(txtdate.Text, strmonth, Convert.ToInt32(ddnstudent.SelectedValue), Convert.ToInt32(ddnclass.SelectedValue),
                                 Convert.ToInt32(ddnsection.SelectedValue), Convert.ToInt32(ddnvehicle.SelectedValue), tf, lf, trnsprtfee, other, txtdesc.Text, Convert.ToInt32(txttotal.Text), "Accountant",
                                 Convert.ToInt32(Session["UUId"]), DateTime.Now.ToString());
         if (i > 0)
         {
             lblmsg.Text = "Data Has Been Added";
             BindData();
             Response.Redirect("StudentFee1.aspx?tf=" + tf + "&lf=" + lf + "&trnsprtFee=" + trnsprtfee + "&Others=" + other + "&Total=" + txttotal.Text + "&desc=" + txtdesc.Text + "&Cat=" + ddncat.SelectedItem.Text);
             // ClearFields();
         }
     }
 }