protected void Page_Load(object sender, EventArgs e) { //set default inputs TextBox2.Focus(); Page.Form.DefaultButton = Button2.UniqueID; if (!IsPostBack) { if (Session["pusername"] != null) { int fg = Convert.ToInt16(Request.QueryString["Fg"]); var mpage = new DlMainpagepopulator(); int recsid = mpage.RecName(Session["pusername"].ToString()); if (fg == 1) { //disable required fields RequiredFieldValidator9.Enabled = false; RequiredFieldValidator11.Enabled = false; //read and validate login if (Session["cuserval"] != null) { if (Session["cuserval"].ToString() == Readjobcookie()) { } else { Response.Redirect("login.aspx"); } } else { Response.Redirect("login.aspx"); } //////////////////////////////////// string[] arr = mpage.RecDetails(Session["pusername"].ToString()); TextBox2.Text = arr[0]; TextBox3.Text = arr[1]; TextBox10.Text = arr[2]; TextBox4.Text = arr[3]; TextBox5.Text = arr[4]; TextBox6.Text = arr[5]; TextBox7.Text = arr[6]; TextBox8.Text = arr[7]; //TextBox9.Text = arr[8]; TextBox9.Text = arr[9]; TextBox12.Text = arr[10]; TextBox13.Text = arr[11]; TextBox11.Text = Session["pusername"].ToString(); TextBox11.Enabled = false; TextBox14.Text = arr[15]; TextBox16.Text = arr[14]; TextBox15.Text = arr[13]; TextBox12.Enabled = false; TextBox13.Enabled = false; TextBox17.Enabled = false; Button3.Visible = false; } // featured recurites var frs = new DlFeaturedrecruiters(); //get recruters image Image8.Visible = true; Image8.ImageUrl = frs.Getrecformimage(recsid); } else { Image8.Visible = false; } } }