Exemple #1
0
        protected void LnKB_Click(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.JobApplication j = new ServiceReference2.JobApplication();
            string name     = GridView1.Rows[x].Cells[3].Text;
            string postname = GridView1.Rows[x].Cells[4].Text;
            string k        = s.DeletePostedJob(name, postname);

            Response.Redirect("company.aspx");
        }
        protected void LnKB_Click(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;

            //  Label2.Text = GridView1.Rows[x].Cells[8].Text;
            GridView1.Rows[x].Cells[0].Text = "Applied";
            ServiceReference2.JobApplication j = new ServiceReference2.JobApplication();
            j.Companyname = GridView1.Rows[x].Cells[2].Text;
            j.Jobid       = Convert.ToInt32(GridView1.Rows[x].Cells[8].Text);
            j.UserName    = Session["username"].ToString();
            string k = s.ApplyForCompany(j);
        }
        protected void LnKB_Click(object sender, System.EventArgs e)
        {
            ServiceReference2.Service1Client s = new ServiceReference2.Service1Client("BasicHttpBinding_IService1");

            Button lb = sender as Button;
            //   Label2.Text = "hello";
            GridViewRow clickedRow = ((Button)sender).NamingContainer as GridViewRow;
            int         x          = clickedRow.RowIndex;

            //  int id = Convert.ToInt32(GridView1.Rows[x].Cells[6].Text);

            //if (GridView1.Rows[x].Cells[0].Text ==)
            // Session["user"] = "******";
            // Label2.Text = GridView1.Rows[x].Cells[8].Text;
            //    GridView1.Rows[x].Cells[0].Text = "Applied";
            ServiceReference2.JobApplication j = new ServiceReference2.JobApplication();
            j.Companyname = GridView1.Rows[x].Cells[3].Text;
            j.Jobid       = Convert.ToInt32(GridView1.Rows[x].Cells[4].Text);
            j.UserName    = Session["username"].ToString();
            string k = s.DeleteAppliedPosition(j);

            Response.Redirect("DisplayAppliedJob.aspx");
        }