protected void Page_Load(object sender, EventArgs e) { if (Session["JobSeekerId"] == null) { Response.Redirect("~/JobSeeker/Registration/frmJobSeekerRegistration.aspx"); } if (!IsPostBack) { ddlJobType.DataSource = job.ShowJobType(); ddlJobType.DataTextField = "JobType"; ddlJobType.DataValueField = "JobId"; ddlJobType.DataBind(); ddlJobType.Items.Insert(0, "---Select---"); ddlCountry1.DataSource = country.ShowCountry(); ddlCountry1.DataTextField = "CountryName"; ddlCountry1.DataValueField = "CountryId"; ddlCountry1.DataBind(); ddlCountry1.Items.Insert(0, "---Select---"); ddlCountry2.DataSource = country.ShowCountry(); ddlCountry2.DataTextField = "CountryName"; ddlCountry2.DataValueField = "CountryId"; ddlCountry2.DataBind(); ddlCountry2.Items.Insert(0, "---Select---"); lstEmploymentType.SelectedIndex = 0; } }
protected void Page_Load(object sender, EventArgs e) { if (Session["UserName"] == null) { Response.Redirect("~/Admin/frmAdminLogin.aspx"); } if (!IsPostBack) { ddlJobType.DataSource = job.ShowJobType(); ddlJobType.DataTextField = "JobType"; ddlJobType.DataValueField = "JobId"; ddlJobType.DataBind(); ddlJobType.Items.Insert(0, "---Select---"); ddlCountry1.DataSource = country.ShowCountry(); ddlCountry1.DataTextField = "CountryName"; ddlCountry1.DataValueField = "CountryId"; ddlCountry1.DataBind(); ddlCountry1.Items.Insert(0, "---Select---"); ddlCountry2.DataSource = country.ShowCountry(); ddlCountry2.DataTextField = "CountryName"; ddlCountry2.DataValueField = "CountryId"; ddlCountry2.DataBind(); ddlCountry2.Items.Insert(0, "---Select---"); BindData(); } }
protected void Page_Load(object sender, EventArgs e) { if (Session["UserName"] == null) { Response.Redirect("~/Admin/frmAdminLogin.aspx"); } if (!IsPostBack) { GridView1.DataSource = country.ShowCountry(); GridView1.DataBind(); GridView1.Visible = false; } lblMsg.Text = ""; }
protected void Page_Load(object sender, EventArgs e) { if (Session["JobSeekerId"] == null) { Response.Redirect("~/frmJobSeekerLogin.aspx"); } if (!IsPostBack) { ddlCountry.DataSource = country.ShowCountry(); ddlCountry.DataTextField = "CountryName"; ddlCountry.DataValueField = "CountryId"; ddlCountry.DataBind(); ddlCountry.Items.Insert(0, "---Select---"); ddlState.DataSource = state.ShowAllState(); ddlState.DataTextField = "StateName"; ddlState.DataValueField = "StateId"; ddlState.DataBind(); ddlState.Items.Insert(0, "---Select---"); ddlCity.DataSource = city.ShowAllCity(); ddlCity.DataTextField = "CityName"; ddlCity.DataValueField = "CityId"; ddlCity.DataBind(); ddlCity.Items.Insert(0, "---Select---"); BindData(); } }
protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { ddlCountry.DataSource = country.ShowCountry(); ddlCountry.DataTextField = "CountryName"; ddlCountry.DataValueField = "CountryId"; ddlCountry.DataBind(); ddlCountry.Items.Insert(0, "---Select---"); } lblExists.Text = ""; lblMsg.Text = ""; }
protected void Page_Load(object sender, EventArgs e) { if (Session["UserName"] == null) { Response.Redirect("~/Admin/frmAdminLogin.aspx"); } if (!IsPostBack) { ddlCountryName.DataSource = country.ShowCountry(); ddlCountryName.DataTextField = "CountryName"; ddlCountryName.DataValueField = "CountryId"; ddlCountryName.DataBind(); ddlCountryName.Items.Insert(0, "---Select---"); GridView1.DataSource = state.ShowAllState(); GridView1.DataBind(); GridView1.Visible = false; } lblMsg.Text = ""; }
protected void Page_Load(object sender, EventArgs e) { int year = 1980; if (Session["JobSeekerId"] == null) { Response.Redirect("~/JobSeeker/Registration/frmJobSeekerRegistration.aspx"); } if (!IsPostBack) { lstDegree.DataSource = qual.ShowQualification(); lstDegree.DataTextField = "Qualification"; lstDegree.DataBind(); ddlCountryName.DataSource = country.ShowCountry(); ddlCountryName.DataTextField = "CountryName"; ddlCountryName.DataValueField = "CountryId"; ddlCountryName.DataBind(); ddlCountryName.Items.Insert(0, "---Select---"); ddlTotExp.DataSource = exp.ShowExperience(); ddlTotExp.DataTextField = "ExpType"; ddlTotExp.DataValueField = "ExpId"; ddlTotExp.DataBind(); ddlTotExp.Items.Insert(0, "---Select---"); ddlWorkField.DataSource = function.ShowFunctionalArea(); ddlWorkField.DataTextField = "FunctionalArea"; ddlWorkField.DataValueField = "FunctionalId"; ddlWorkField.DataBind(); ddlWorkField.Items.Insert(0, "---Select---"); while (year < System.DateTime.Now.Year) { ddlPassingYear.Items.Add(year.ToString()); year++; } } lblMsg.Text = ""; }