コード例 #1
0
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            logic l = new logic();
            l.userid = Convert.ToInt32(Session["eid"]);
            l.field  = Convert.ToString(Session["Ufield"]);
            l.loc    = Convert.ToString(Session["Uloc"]);
            l.exp    = Convert.ToInt32(Session["Uexp"]);
            l.mfield = Convert.ToInt32(Session["Umfield"]);
            l.fetchvacancies();
            l.userid = Convert.ToInt32(Session["mfield"]);
            l.fetchmfield();

            btnupdate.Visible = false;
            btncancel.Visible = false;

            txtCompanyName.Enabled = false;
            txtContact.Enabled     = false;
            txtFieldName.Enabled   = false;
            txtKeySkills.Enabled   = false;
            txtExp.Enabled         = false;
            txtabtcmp.Enabled      = false;
            txtkeywrd.Enabled      = false;
            txtLoc.Enabled         = false;
            txtQual.Enabled        = false;
            txtvacancy.Enabled     = false;
            DDLstream.Enabled      = false;

            txtCompanyName.Text         = Convert.ToString(Session["compname"]);
            txtvacancy.Text             = Convert.ToString(Session["Vacancy"]);
            txtkeywrd.Text              = Convert.ToString(Session["keyword"]);
            txtFieldName.Text           = Convert.ToString(Session["role"]);
            txtExp.Text                 = Convert.ToString(Session["experience"]);
            txtLoc.Text                 = Convert.ToString(Session["location"]);
            txtQual.Text                = Convert.ToString(Session["education"]);
            txtKeySkills.Text           = Convert.ToString(Session["skills"]);
            txtabtcmp.Text              = Convert.ToString(Session["compprofile"]);
            txtContact.Text             = Convert.ToString(Session["number"]);
            l.userid                    = Convert.ToInt32(Session["eid"]);
            DDLstream.SelectedItem.Text = Convert.ToString(Session["mfieldname"]);
        }
    }