protected void btnsavepreviousdetails_OnClick(object sender, EventArgs e) { try { long result = 1; VmStudentRegistration objVmprevinstitute = new VmStudentRegistration(); objVmprevinstitute.AdmissionNo = Convert.ToInt32(txtadmsnnum.Text.Trim()); objVmprevinstitute.namep = txtinsname.Text.Trim(); objVmprevinstitute.gradep = txtprevgrade.Text.Trim(); objVmprevinstitute.addschoolp = txtaddschl.Text.Trim(); objVmprevinstitute.telephonep = txtphonescl.Text.Trim(); objVmprevinstitute.emailp = txtemailscl.Text.Trim(); objVmprevinstitute.attenddeddatep = (DateTime)ddldateattended.SelectedDate; if (rbattendingc1.Checked) { objVmprevinstitute.attendingcurrp = " Yes"; } else { objVmprevinstitute.attendingcurrp = " No"; } result = StudentRegisrationBLL.SavePrevDetails(objVmprevinstitute); if (result > 0) { // btnuppreviousdetails.Visible = true; btnsavedoc.Enabled = true; btnsavepreviousdetails.Enabled = false; tabStudentDocuments.Attributes["Class"] = "nav-link enabled"; } } catch (Exception) { throw; } // btnuppreviousdetails.Enabled = true; }
protected void btnSaveStuDoc(object sender, EventArgs e) { try { VmStudentRegistration objVmStudent = new VmStudentRegistration(); long result = 1; objVmStudent.AdmissionNo = Convert.ToInt32(txtadmsnnum.Text.Trim()); objVmStudent.StudentDocument = upstudoc.FileName; result = StudentRegisrationBLL.UploadDocument(objVmStudent); if (result > 0) { btnsaveadditionaldetails.Enabled = true; btnsavedoc.Enabled = false; } } catch (Exception) { throw; } Docupload(); //btnupstudoc.Enabled = true; }
protected void additionaldetailssave() { try { long result = 1; VmStudentRegistration otherdetails = new VmStudentRegistration(); otherdetails.AdmissionNo = Convert.ToInt32(txtadmsnnum.Text.Trim()); //Medical Info if (rbmedical1.Checked) { otherdetails.Hasmedicalproblem = "Yes"; } else { otherdetails.Hasmedicalproblem = "No"; } if (rbmedication1.Checked) { otherdetails.Onmedication = "Yes"; } else { otherdetails.Onmedication = "No"; } otherdetails.Medicaldetails = txtmedicaldetails.Text.Trim(); //Sibling1 otherdetails.sname1 = txtsname1.Text.Trim(); otherdetails.sgender1 = ddlgenderS.SelectedValue; otherdetails.srelationship1 = txtsrelation1.Text.Trim(); otherdetails.sage1 = txtsage1.Text.Trim(); otherdetails.sstudentID1 = txtsstudentID1.Text.Trim(); otherdetails.sclassroll1 = txtsclassroll1.Text.Trim(); otherdetails.scampus1 = txtscampus1.Text.Trim(); //Sibling2 otherdetails.sname2 = txtsname2.Text.Trim(); otherdetails.sgender2 = ddlSgender.SelectedValue; otherdetails.srelationship2 = txtsrelation2.Text.Trim(); otherdetails.sage2 = txtsage2.Text.Trim(); otherdetails.sstudentID2 = txtsstudentid2.Text.Trim(); otherdetails.sclassroll2 = txtsclassroll2.Text.Trim(); otherdetails.scampus2 = txtscampus2.Text.Trim(); //Transportation if (rbcar1.Checked) { otherdetails.personalcar = "Yes"; } else { otherdetails.personalcar = "No"; } if (rbbus1.Checked) { otherdetails.bus = "Yes"; } else { otherdetails.bus = "No"; } if (rbsbus1.Checked) { otherdetails.schoolbus = "Yes"; } else { otherdetails.schoolbus = "No"; } otherdetails.carregno = txtcarregno.Text.Trim(); result = StudentRegisrationBLL.SaveAdditionalDetails(otherdetails); } catch (Exception) { throw; } //studentlistPanelmaster.Visible = true; MasterPanel.Visible = false; }