protected void BtnAdd_Click(object sender, EventArgs e)
 {
     if (Session["id"] != null)
     {
     }
     i = obj.AddSubject(txtsubjectname.Text, Convert.ToInt32(txtmarks.Text), ddntype.SelectedItem.Text, txtsubdesc.Text, "Admin", 1, DateTime.Now.ToString());
     if (i > 0)
     {
         lblmsg.Text = "Data Has Been Saved";
         BindData();
         ClearFields();
         Response.Redirect("AddSubject.aspx");
     }
 }