protected void btn_Submit_Click(object sender, EventArgs e)
 {
     if (ddl_city.SelectedValue != string.Empty)
     {
         try
         {
             EmployerLogic empLogic = new EmployerLogic(myConn);
             List<BusinessLogic.Employer> eList = empLogic.GetEmployerByCity(ddl_city.SelectedValue);
             Repeater_Org.DataSource = eList;
             Repeater_Org.DataBind();
         }
         catch (Exception ex)
         {
             Page.ClientScript.RegisterClientScriptBlock(this.GetType(), "PopupScript", "<script>alert('" + ex.Message + "');</script>");
         }
     }
 }
        protected void Page_Load(object sender, EventArgs e)
        {
            empUniqueId = Request.Params["eid"].ToString();
            empLogic = new BusinessLogic.Facade.Employer.EmployerLogic(myConn);

            mu = Membership.GetUser(new Guid(empUniqueId));

            DataSet dataset = empLogic.GetEmployerInfo(empUniqueId);
            tbl_EmpInfo = dataset.Tables["tbl_EmpInfo"];

            title.Text = tbl_EmpInfo.Rows[0][3].ToString();

            objList = new List<objValue>();

            if (tbl_EmpInfo.Rows[0][14].ToString().Trim() != "" && tbl_EmpInfo.Rows[0][14].ToString().Trim() != null)
            {
               objList.Add(new objValue("<b>School type: </b>",tbl_EmpInfo.Rows[0][6].ToString() + "<br />" + tbl_EmpInfo.Rows[0][14].ToString()));
            }
            else
            {
                objList.Add(new objValue("<b>School type: </b>",tbl_EmpInfo.Rows[0][6].ToString()));
            }
            if (tbl_EmpInfo.Rows[0][10].ToString().Trim() == "" || tbl_EmpInfo.Rows[0][10].ToString().Trim() == null)
            {
                objList.Add(new objValue("<b>From: </b>",tbl_EmpInfo.Rows[0][11].ToString()));
            }
            else
            {
                objList.Add(new objValue("<b>From: </b>", tbl_EmpInfo.Rows[0][10].ToString() + " - " + tbl_EmpInfo.Rows[0][11].ToString()));
            }
            addToList("Address", 7);
            addToList("Phone", 9);
            addToList("Fax number", 8);
            addToList("Zip code", 12);
            addToList("Contact", 0);
            objList.Add(new objValue("<b>Website: </b>", "<a href='http://" + tbl_EmpInfo.Rows[0][5].ToString() + "'>" + tbl_EmpInfo.Rows[0][5].ToString() + "</a>"));

            //string info_EmpPhone = tbl_EmpInfo.Rows[0][1].ToString();
            //string info_PersonalImage = tbl_EmpInfo.Rows[0][2].ToString();
            //string info_Website = tbl_EmpInfo.Rows[0][5].ToString();

            //hpl_OrgWebsite.Text = info_Website;
            //hpl_OrgWebsite.NavigateUrl = "http://" + info_Website;

            Repeater_Info.DataSource = objList;
            Repeater_Info.DataBind();

            //li_postedjob_heading.Text = "Jobs which was posted by " + title.Text;
            BusinessLogic.BusinessFacade facade = new BusinessLogic.BusinessFacade(myConn);
            var list  = facade.GetPostedJobByUser(empUniqueId);
            if (list.Count!=0)
            {
                Repeater_PostedJob.DataSource = list;
                Repeater_PostedJob.DataBind();
            }
            else
            {
                literal_postedJobInform.Text = "This employer has posted no job.";
            }

            var list2 = TrainingCourseLogic.GetCoursesByEmployer(mu.ProviderUserKey.ToString());
            if (list2.Count != 0)
            {
                Repeater_TrainingCourse.DataSource = list2;
                Repeater_TrainingCourse.DataBind();
            }
            else
            {
                literal_courseInform.Text = "This employer has posted no training course.";
            }
        }