protected void BtnAdd_Click(object sender, EventArgs e)
 {
     i = obj.AddAllotment(Convert.ToInt32(ddnteacher.SelectedValue), Convert.ToInt32(ddnclass.SelectedValue), Convert.ToInt32(ddnsection.SelectedValue), Convert.ToInt32(ddnsubsubject.SelectedValue), "Admin", DateTime.Now.ToString());
     if (i > 0)
     {
         lblmsg.Text = "Data Added";
         ClearFields();
         BindData();
         Response.Redirect("AddAllotment.aspx");
     }
 }