protected void bt1_Click(object sender, EventArgs e) { Session["P_email"] = TextBox1.Text; Session["P_password"] = txtpassword.Text; if (txtpassword.Text == txtcpassword.Text) { insert_data ob = new insert_data(); ob.insert_loginmethod(TextBox1.Text, txtpassword.Text, "proc_job_poster_id"); Response.Redirect("~/job_poster/pannel.aspx"); } else { } }
}//load event end................................... protected void Button1_Click(object sender, EventArgs e) { int c = int.Parse(DropDownList6.SelectedValue); string[] masters = new string[7]; switch (c) { case 1: string[] ssc = new string[7]; ssc[3] = Session["c_img_id"].ToString(); ssc[2] = TextBox3.Text; ssc[1] = TextBox5.Text; ssc[0] = gradesfinder(ssc[1]); ssc[4] = DropDownList6.SelectedItem.ToString(); ssc[5] = DropDownList2.SelectedItem.ToString() + "-" + DropDownList1.SelectedItem.ToString(); if (CheckBox1.Checked == true) { ssc[6] = "In process"; } else { ssc[6] = DropDownList4.SelectedItem.ToString() + "-" + DropDownList3.SelectedItem.ToString(); } insert_data da = new insert_data(); da.insert_s_h_m_g("@ssc_Grades", "@ssc_percentage", "@ssc_institute", "@ssc_degree", "@ssc_fk_id", "@scc_duration", "@scc_duration_END", "insert_scc_record", ssc); break; case 2: string[] hsc = new string[7]; hsc[3] = Session["c_img_id"].ToString(); hsc[2] = TextBox3.Text; hsc[1] = TextBox5.Text; hsc[0] = gradesfinder(hsc[1]); hsc[4] = DropDownList6.SelectedItem.ToString(); hsc[5] = DropDownList2.SelectedItem.ToString() + "-" + DropDownList1.SelectedItem.ToString(); if (CheckBox1.Checked == true) { hsc[6] = "In process"; } else { hsc[6] = DropDownList4.SelectedItem.ToString() + "-" + DropDownList3.SelectedItem.ToString(); } insert_data da1 = new insert_data(); da1.insert_s_h_m_g("@hsc_Grades", "@hsc_percentage", "@hsc_institute", "@hsc_degree", "@hsc_fk_id", "@hsc_duration", "@HSC_duration_END", "insert_hsc_record", hsc); break; case 3: string[] grad = new string[7]; grad[3] = Session["c_img_id"].ToString(); grad[2] = TextBox3.Text; grad[1] = TextBox5.Text; grad[0] = gradesfinder(grad[1]); grad[4] = DropDownList6.SelectedItem.ToString(); grad[5] = DropDownList2.SelectedItem.ToString() + "-" + DropDownList1.SelectedItem.ToString(); if (CheckBox1.Checked == true) { grad[6] = "In process"; } else { grad[6] = DropDownList4.SelectedItem.ToString() + "-" + DropDownList3.SelectedItem.ToString(); } insert_data da2 = new insert_data(); da2.insert_s_h_m_g("@grad_Grades", "@grad_percentage", "@grad_institute", "@grad_degree", "@grad_fk_id", "@grad_duration", "@grad_duration_end", "insert_grad_record", grad); break; case 4: masters[3] = Session["c_img_id"].ToString(); masters[2] = TextBox3.Text; masters[1] = TextBox5.Text; masters[0] = gradesfinder(masters[1]); masters[4] = DropDownList6.SelectedItem.ToString(); masters[5] = DropDownList2.SelectedItem.ToString() + "-" + DropDownList1.SelectedItem.ToString(); if (CheckBox1.Checked == true) { masters[6] = "In process"; } else { masters[6] = DropDownList4.SelectedItem.ToString() + "-" + DropDownList3.SelectedItem.ToString(); } insert_data da3 = new insert_data(); da3.insert_s_h_m_g("@masters_Grades", "@masters_percentage", "@masters_institute", "@masters_degree", "@masters_fk_id", "@masters_duration", "@masters_duration_end", "insert_masters_record", masters); break; case 5: masters[3] = Session["c_img_id"].ToString(); masters[2] = TextBox3.Text; masters[1] = TextBox5.Text; masters[0] = gradesfinder(masters[1]); masters[4] = DropDownList6.SelectedItem.ToString(); masters[5] = DropDownList2.SelectedItem.ToString() + "-" + DropDownList1.SelectedItem.ToString(); if (CheckBox1.Checked == true) { masters[6] = "In process"; } else { masters[6] = DropDownList4.SelectedItem.ToString() + "-" + DropDownList3.SelectedItem.ToString(); } insert_data da4 = new insert_data(); da4.insert_s_h_m_g("@masters_Grades", "@masters_percentage", "@masters_institute", "@masters_degree", "@masters_fk_id", "@masters_duration", "@masters_duration_end", "insert_masters_record", masters); break; default: break; } }//btnevent end...................................