Ejemplo n.º 1
0
    protected void BtnAdd_Click(object sender, EventArgs e)
    {
        i = obj.AddStudentPerformance(Convert.ToInt32(ddnstudent.SelectedValue), Convert.ToInt32(ddnclass.SelectedValue), Convert.ToInt32(ddnsection.SelectedValue),
                                      ddnlevel.SelectedItem.Text, txtdesc.Text, "Teacher", Convert.ToInt32(Session["tuid"]), DateTime.Now.ToString());
        if (i > 0)
        {
            lblmsg.Text = "Data Has Been Inserted";

            s  = "Welcome Mr." + str + " Your Ward Performance is" + txtdesc.Text;
            s1 = "Welcome Mrs." + str1 + " Your Ward Performance is" + txtdesc.Text;
            SendSMS(str, s);
            SendSMS(str1, s1);
            BindData();
            ClearFields();
        }
    }