protected void Button1_Click(object sender, EventArgs e) { hrmanager cls2 = new hrmanager(); cls2.appl_id = Convert.ToInt32(TextBox1.Text); cls2.job_desc = TextBox2.Text; cls2.min_qualification = TextBox3.Text; cls2.pref_qualification = TextBox4.Text; cls2.resp = TextBox5.Text; cls2.req_id = Convert.ToInt32(TextBox17.Text); cls2.appstatus = "inprogress"; cls2.manager_name = TextBox8.Text; cls2.project_name = TextBox9.Text; cls2.period_month = Convert.ToInt32(TextBox10.Text); cls2.noof_vacancies = Convert.ToInt32(TextBox11.Text); cls2.skill = TextBox12.Text; cls2.pgm_languages = TextBox13.Text; cls2.exp_years = Convert.ToInt32(TextBox14.Text); cls2.desg = TextBox15.Text; cls2.dateapp = TextBox16.Text; dl.storeapp(cls2); Label1.Text = TextBox4.Text; /*hrmanager cls1 = new hrmanager(); * cls1.req_id = Convert.ToInt32(TextBox17.Text); * cls1.appstatus = "inprogress"; */ //dl.post(cls1); }
protected void Button1_Click(object sender, EventArgs e) { hrmanager cls = new hrmanager(); cls.appl_id = Convert.ToInt32(TextBox1.Text); cls.job_desc = TextBox2.Text; cls.min_qualification = TextBox3.Text; cls.pref_qualification = TextBox4.Text; cls.resp = TextBox5.Text; cls.req_id = Convert.ToInt32(TextBox17.Text); cls.appstatus = TextBox7.Text; cls.manager_name = TextBox8.Text; cls.project_name = TextBox9.Text; cls.period_month = Convert.ToInt32(TextBox10.Text); cls.noof_vacancies = Convert.ToInt32(TextBox11.Text); cls.skill = TextBox12.Text; cls.pgm_languages = TextBox13.Text; cls.exp_years = Convert.ToInt32(TextBox14.Text); cls.desg = TextBox15.Text; cls.dateapp = TextBox16.Text; dal dl = new dal(); dl.storeapp(cls); hrmanager cls1 = new hrmanager(); cls1.req_id = Convert.ToInt32(TextBox17.Text); cls1.appstatus = TextBox7.Text; Label1.Text = " Form pushed to database..."; }