protected void Page_Load(object sender, EventArgs e)
        {
            JobPortalRef.Service1Client c = new JobPortalRef.Service1Client("BasicHttpBinding_IService1");

            GridView1.DataSource = c.SelectUserbyCompany(Session["companyname"].ToString());
            Label1.Text          = Session["companyname"].ToString();
            GridView1.DataBind();
        }
Example #2
0
        protected void Page_Load(object sender, EventArgs e)
        {
            JobPortalRef.Service1Client s = new JobPortalRef.Service1Client("BasicHttpBinding_IService1");
            DataSet ds = s.SelectUserbyCompany("amazon");

            GridView1.DataSource = ds;///.SelectUserbyCompany("yt").Tables[0];
            GridView1.DataBind();
        }
Example #3
0
        protected void Page_Load(object sender, EventArgs e)
        {
            JobPortalRef.Service1Client s = new JobPortalRef.Service1Client("BasicHttpBinding_IService1");

            DataSet   ds1 = s.GetCompanyData();
            DataTable dt1 = ds1.Tables[0];


            GridView1.DataSource = dt1;
            GridView1.DataBind();
        }
Example #4
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);
 }
Example #5
0
        protected void Button1_Click(object sender, EventArgs e)
        {
            JobPortalRef.Service1Client s = new JobPortalRef.Service1Client("BasicHttpBinding_IService1");
            JobPortalRef.User           u = new JobPortalRef.User();
            u.UserName = TextBox1.Text;
            u.Email    = TextBox2.Text;
            u.Password = TextBox3.Text;
            u.Contact  = TextBox5.Text;
            u.Role     = TextBox6.Text;

            string st = s.AddUser(u);

            Response.Redirect("Login.aspx");
        }
Example #6
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                JobPortalRef.Service1Client s = new JobPortalRef.Service1Client("BasicHttpBinding_IService1");
                DataSet       ds = s.GetCompanyData();
                DataTable     dt = ds.Tables[0];
                List <string> l  = (from DataRow dr in dt.Rows

                                    select(string) dr["name"]).ToList <string>();
                DropDownList1.DataSource = l;
                DropDownList1.DataBind();
            }
        }
Example #7
0
        protected void LnKB_Click(object sender, System.EventArgs e)
        {
            JobPortalRef.Service1Client s = new JobPortalRef.Service1Client("BasicHttpBinding_IService1");

            Button lb = sender as Button;

            GridViewRow clickedRow = ((Button)sender).NamingContainer as GridViewRow;
            int         x          = clickedRow.RowIndex;

            string user = GridView1.Rows[x].Cells[2].Text;
            //GridView1.Rows[x].Cells[0].Text = "Applied";

            string k = s.DeleteUser(user);

            Response.Redirect("viewUsers.aspx");
        }
Example #8
0
        protected void DropDownList1_SelectedIndexChanged1(object sender, EventArgs e)
        {
            JobPortalRef.Service1Client s = new JobPortalRef.Service1Client("BasicHttpBinding_IService1");
            string c = DropDownList1.SelectedValue;//.Text;

            Label1.Text = c;
            DataSet   ds             = s.GetCompanyData();
            DataTable dt             = ds.Tables[0];
            string    SearchByColumn = "name = name";// + c;
            var       rows           = dt.AsEnumerable()
                                       .Where(r => r.Field <string>("name") == c);

            //  DataRow[] hasRows = dt.Rows.Find(c);// (Select(SearchByColumn)''

            GridView1.DataSource = rows.CopyToDataTable();
            GridView1.DataBind();
        }
Example #9
0
        protected void Button1_Click(object sender, EventArgs e)
        {
            JobPortalRef.Service1Client s = new JobPortalRef.Service1Client("BasicHttpBinding_IService1");
            JobPortalRef.User           u = new JobPortalRef.User();
            u.UserName = TextBox1.Text;
            u.Password = TextBox2.Text;
            u.Role     = TextBox3.Text;
            string st = s.Login(u);

            if (st.Equals("login"))
            {
                Response.Redirect("UserHome.aspx");
            }
            else
            {
                Response.Redirect("Login.aspx");
            }
        }
Example #10
0
        protected void Page_Load(object sender, EventArgs e)
        {
            JobPortalRef.Service1Client s = new JobPortalRef.Service1Client("BasicHttpBinding_IService1");

            DataSet   ds1 = s.GetUsers();
            DataTable dt1 = ds1.Tables[0];
            //string SearchByColumn1 = "name = name";// + c;
            var row1 = from customer in dt1.AsEnumerable()

                       select new
            {
                Id       = customer.Field <int>("Id"),
                UserName = customer.Field <string>("UserName"),
                Contact  = customer.Field <string>("Contact"),
                Email    = customer.Field <string>("Email"),
                Role     = customer.Field <string>("Role"),
            };

            //if (rows1.Any())
            GridView1.DataSource = row1;//.CopyToDataTable();
            GridView1.DataBind();
        }