Ejemplo n.º 1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            //set default inputs
            TextBox2.Focus();
            Page.Form.DefaultButton = Button2.UniqueID;

            if (!IsPostBack)
            {
                if (Request.QueryString["CRF"] == "1")
                {
                }

                else
                {
                    //request for login
                    //read and validate login
                    if (Session["cuserval"] != null)
                    {
                        if (Session["cuserval"].ToString() == Readjobcookie())
                        {
                        }
                        else
                        {
                            Response.Redirect("login.aspx");
                        }
                    }

                    else
                    {
                        Response.Redirect("login.aspx");
                    }
                    ////////////////////////////////////

                    //load job seeker settings
                    //update job seeker user details
                    TextBox11.Enabled = false;
                    TextBox12.Enabled = false;
                    TextBox13.Enabled = false;
                    Button3.Visible   = false;
                    TextBox18.Enabled = false;

                    //change required field validators
                    RequiredFieldValidator7.Enabled = false;
                    RequiredFieldValidator9.Enabled = false;

                    //load array for user details
                    var      clmpages = new DlMainpagepopulator();
                    string[] arrs     = clmpages.Getcandidatedetails(Session["pusername"].ToString());

                    TextBox2.Text  = arrs[0];
                    TextBox3.Text  = arrs[1];
                    TextBox4.Text  = arrs[2];
                    TextBox5.Text  = arrs[3];
                    TextBox6.Text  = arrs[4];
                    TextBox7.Text  = arrs[5];
                    TextBox8.Text  = arrs[6];
                    TextBox16.Text = arrs[7];
                    TextBox9.Text  = arrs[8];
                    var cinf = new CultureInfo("pt-BR");
                    TextBox17.Text = Convert.ToDateTime(arrs[11]).ToString("d", cinf);
                    TextBox15.Text = arrs[10];
                    TextBox14.Text = arrs[9];
                    TextBox11.Text = Session["pusername"].ToString();
                    TextBox12.Text = "XXXXXXXX";
                    TextBox13.Text = "N/A";
                }
            }
        }
Ejemplo n.º 2
0
        protected void Page_Load(object sender, EventArgs e)
        {
            //set default inputs
            TextBox2.Focus();
            Page.Form.DefaultButton = Button2.UniqueID;

            if (!IsPostBack)
            {
                if (Request.QueryString["CRF"] == "1")
                {
                }

                else
                {
                    //request for login
                    //read and validate login
                    if (Session["cuserval"] != null)
                    {
                        if (Session["cuserval"].ToString() == Readjobcookie())
                        {
                        }
                        else
                        {
                            Response.Redirect("login.aspx");
                        }
                    }

                    else
                    {
                        Response.Redirect("login.aspx");
                    }
                    ////////////////////////////////////

                    //load job seeker settings
                    //update job seeker user details
                    TextBox11.Enabled = false;
                    TextBox12.Enabled = false;
                    TextBox13.Enabled = false;
                    Button3.Visible = false;
                    TextBox18.Enabled = false;

                    //change required field validators
                    RequiredFieldValidator7.Enabled = false;
                    RequiredFieldValidator9.Enabled = false;

                    //load array for user details
                    var clmpages = new DlMainpagepopulator();
                    string[] arrs = clmpages.Getcandidatedetails(Session["pusername"].ToString());

                    TextBox2.Text = arrs[0];
                    TextBox3.Text = arrs[1];
                    TextBox4.Text = arrs[2];
                    TextBox5.Text = arrs[3];
                    TextBox6.Text = arrs[4];
                    TextBox7.Text = arrs[5];
                    TextBox8.Text = arrs[6];
                    TextBox16.Text = arrs[7];
                    TextBox9.Text = arrs[8];
                    var cinf = new CultureInfo("pt-BR");
                    TextBox17.Text = Convert.ToDateTime(arrs[11]).ToString("d", cinf);
                    TextBox15.Text = arrs[10];
                    TextBox14.Text = arrs[9];
                    TextBox11.Text = Session["pusername"].ToString();
                    TextBox12.Text = "XXXXXXXX";
                    TextBox13.Text = "N/A";
                }
            }
        }