protected void updatedetails(object sender, System.EventArgs e) { ServiceReference2.Service1Client s = new ServiceReference2.Service1Client("BasicHttpBinding_IService1"); Button lb = sender as Button; GridViewRow clickedRow = ((Button)sender).NamingContainer as GridViewRow; int x = clickedRow.RowIndex; ServiceReference2.CompanyDetails j = new ServiceReference2.CompanyDetails(); j.Name = GridView1.Rows[x].Cells[3].Text; j.Postname = GridView1.Rows[x].Cells[4].Text; j.Vacancy = Int32.Parse(GridView1.Rows[x].Cells[5].Text); j.Qualification = GridView1.Rows[x].Cells[6].Text; j.Salary = GridView1.Rows[x].Cells[7].Text; j.Description = GridView1.Rows[x].Cells[8].Text; j.Jobid = GridView1.Rows[x].Cells[9].Text; int id = Int32.Parse(GridView1.Rows[x].Cells[2].Text); // string k = s.UpdatePostedJob(j,id); Session["j.Name"] = GridView1.Rows[x].Cells[3].Text; Session["j.Postname"] = GridView1.Rows[x].Cells[4].Text; Session["j.Vacancy"] = Int32.Parse(GridView1.Rows[x].Cells[5].Text); Session["j.Qualification"] = GridView1.Rows[x].Cells[6].Text; Session["j.Salary"] = GridView1.Rows[x].Cells[7].Text; Session["j.Description"] = GridView1.Rows[x].Cells[8].Text; Session["j.Jobid"] = GridView1.Rows[x].Cells[9].Text; Session["id"] = id.ToString(); Response.Redirect("UpdateDetails.aspx"); }
protected void Button1_Click(object sender, EventArgs e) { ServiceReference2.CompanyDetails c = new ServiceReference2.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); }
protected void Button1_Click(object sender, EventArgs e) { ServiceReference2.Service1Client client = new ServiceReference2.Service1Client("BasicHttpBinding_IService1"); ServiceReference2.CompanyDetails c = new ServiceReference2.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); }
protected void Button1_Click(object sender, EventArgs e) { ServiceReference2.Service1Client client = new ServiceReference2.Service1Client("BasicHttpBinding_IService1"); ServiceReference2.CompanyDetails c = new ServiceReference2.CompanyDetails(); c.Name = Session["username"].ToString(); 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; string mess = client.InsertData(c); Response.Write("<script>alert('" + mess + "')</script>"); }
protected void Button1_Click(object sender, EventArgs e) { ServiceReference2.Service1Client s = new ServiceReference2.Service1Client("BasicHttpBinding_IService1"); ServiceReference2.CompanyDetails j = new ServiceReference2.CompanyDetails(); j.Name = name.Text; j.Postname = postname.Text; j.Vacancy = Int32.Parse(vacancy.Text); j.Qualification = qualification.Text; j.Salary = salary.Text; j.Description = description.Text; j.Jobid = jobid.Text; int id = Int32.Parse(Session["id"].ToString()); string k = s.UpdatePostedJob(j, id); Response.Redirect("UpdatePostedJob.aspx"); }