protected void BtnAdd_Click(object sender, EventArgs e) { i = obj.AddtStudentTC(Convert.ToInt32(ddnstudent.SelectedValue), Convert.ToInt32(ddnclass.SelectedValue), Convert.ToInt32(ddnsec.SelectedValue), "Generated", txtdesc.Text, "Admin", DateTime.Now.ToString()); if (i > 0) { j = obj.UpdateClassAllottment(Convert.ToInt32(ddnstudent.SelectedValue), 0, 0); if (j > 0) { BindData(); dt5 = obj.GetStudentTC1(Convert.ToInt32(ddnstudent.SelectedValue)); Response.Redirect("GenerateTC.aspx?Student=" + ddnstudent.SelectedItem.Text + "&Class=" + ddnclass.SelectedItem.Text + "§ion=" + ddnsec.SelectedItem.Text + "&FN=" + dt5.Rows[0]["StudentFatherName"].ToString()); } } }