public void bind() { try { bl.IndustryType_ID = Convert.ToInt32(DDLIndustryType.SelectedValue.ToString()); DataTable dt = dl.Administrator_EmplyerBasic_Display(bl).Tables[0]; GVEmpInfo.DataSource = dt; GVEmpInfo.DataBind(); } catch { lblMsg.ForeColor = System.Drawing.Color.Red; lblMsg.Text = "Technical error"; } }
public void bind() { try { bl.Employer_ID = Convert.ToInt32(Session["Employer_ID"].ToString()); DataTable dt1 = dl.Administrator_EmployerFullDTL_Display(bl).Tables[0]; GVEmpInfo.DataSource = dt1; GVEmpInfo.DataBind(); DataTable dt2 = dl.Administrator_EmployerFullDTL_ContactDTL_Display(bl).Tables[0]; GVContactInfo.DataSource = dt2; GVContactInfo.DataBind(); } catch { lblMsg.ForeColor = System.Drawing.Color.Red; lblMsg.Text = "Technical error"; } }