예제 #1
0
 protected void Button1_Click(object sender, EventArgs e)
 {
     JobPortalRef.CompanyDetails c = new JobPortalRef.CompanyDetails();
     c.Name          = TextBox1.Text;
     c.Postname      = TextBox2.Text;
     c.Jobid         = TextBox3.Text;
     c.Qualification = TextBox4.Text;
     c.Salary        = TextBox5.Text;
     c.Description   = TextBox6.Text;
     c.Vacancy       = Int32.Parse(TextBox7.Text);
     s.InsertData(c);
 }
예제 #2
0
 protected void Button1_Click(object sender, EventArgs e)
 {
     JobPortalRef.Service1Client client = new JobPortalRef.Service1Client("BasicHttpBinding_IService1");
     JobPortalRef.CompanyDetails c      = new JobPortalRef.CompanyDetails();
     c.Name          = Companyname.Text;
     c.Postname      = PostName.Text;
     c.Qualification = Qualification.Text;
     c.Salary        = Salary.Text;
     c.Vacancy       = Int32.Parse(Vacancy.Text);
     c.Description   = message.Text;
     c.Jobid         = Jobid.Text;
     client.InsertData(c);
 }