protected void Page_Load(object sender, EventArgs e) { jobsearch jobs = new jobsearch(); GridView1.PageSize = Convert.ToInt32(ddlRecordsPerPage.SelectedValue); lblCompanyCount.Text = jobs.GetCompanyCount(); }
protected void Page_Load(object sender, EventArgs e) { string ID = Request.QueryString["id"].ToString(); jobsearch job = new jobsearch(); btnSearchCompanyJobs.Text = "Search Jobs (" + job.GetJobCountByCompanyID(ID) + ")"; dataAccess database = new dataAccess(); System.Data.DataTable logos = database.getTable("SELECT Logo FROM jobsdb_Employer Where ID='" + ID + "'"); if (logos.Rows[0]["Logo"].ToString() == "") { imgLogo.ImageUrl = "~/Images/no-logo.gif"; } else { imgLogo.ImageUrl = "CompanyDetail.aspx?id=" + ID + "&imageID=" + ID; displayAdvertiserLogo(); } }