protected void btnsignin_Click(object sender, EventArgs e)
    {
        if (Jobseeker.Checked || Employer.Checked)
        {
            lblusertype.Text = "";
        }
        else
        {
            lblusertype.Text = "Choose the Field";
        }


        logic l = new logic();

        l.uname          = txtid.Text;
        l.upwd           = txtpwd.Text;
        Session["uname"] = txtid.Text;
        Session["upwd"]  = txtpwd.Text;
        l.seekuser       = txtid.Text;
        l.seekpwd        = txtpwd.Text;

        if (Jobseeker.Checked)
        {
            Session["usertype"] = 1;
            Session["name"]     = null;
            flag = l.check();
            if (flag == 1)
            {
                lblvalid.Text = "Invalid User";
            }
            else
            {
                l.viewprofile();
                l.ddnation = (int)Session["nation"];
                l.nation();
                l.ddstate = (int)Session["state"];
                l.tblstate();
                l.ddhq = (int)Session["hq"];
                l.hq();
                l.dddegree = (int)Session["degree"];
                l.getdeg();
                l.ddcourse = (int)Session["course"];
                l.getcou();
                l.dduni = (int)Session["university"];
                l.getuni();
                l.ddins = (int)Session["institute"];
                l.getins();
                l.ddyear = (int)Session["yop"];
                l.getyop();
                Response.Redirect("WelcomeSeek.aspx");
            }
        }
        else
        {
            Session["usertype"] = 2;
            flag = l.checkemp();
            if (flag == 1)
            {
                lblvalid.Text = "Invalid User";
            }
            else
            {
                l.viewprofile1();
                l.enation = (int)Session["enation"];
                l.getempnation();
                l.estate = (int)Session["estate"];
                l.getempstate();
                Response.Redirect("WelcomeEmp.aspx");
            }
        }
    }