Ejemplo n.º 1
0
 protected void BtnAdd_Click(object sender, EventArgs e)
 {
     i = obj.AddTeacherTimeTable(txtdate.Text, ddnday.SelectedItem.Text, Convert.ToInt32(ddnteacher.SelectedValue), ddnperiod.SelectedItem.Text, txtfrom.Text, txttill.Text, Convert.ToInt32(ddnsubsubject.SelectedValue), Convert.ToInt32(ddnclass.SelectedValue),
                                 Convert.ToInt32(ddnsection.SelectedValue), "teacher", txtdesc.Text, "Admin", 1, DateTime.Now.ToString());
     if (i > 0)
     {
         lblmsg.Text = "Data Has Been Added";
         BindData();
         ClearFields();
         Response.Redirect("AddTeacherTimeTable.aspx");
     }
 }