protected void Page_Load(object sender, EventArgs e)
    {
        ProviderId = Convert.ToInt64(Request.QueryString["Providerid"]);

        providerbl = new ProviderBL();
        if (providerbl.GetProviderImage(ProviderId) != null)
        {
            Image1.ImageUrl = "~/ShowImage.ashx?ProviderId=" + ProviderId.ToString();
        }
        else
        {
            Image1.ImageUrl = "~/Images/nopicture.gif";
        }

        if (!IsPostBack)
        {
            ProvideremploymentBL    = new ProviderEmploymentBL();
            ProviderEducationBl     = new ProviderEducationBL();
            ProviderCertificationBl = new ProviderCertificationBL();
            providerbl      = new ProviderBL();
            ProviderSkillbl = new ProviderSkillBL();

            GridViewJobExperience.DataSource = ProvideremploymentBL.GetEmploymentByProviderId(ProviderId);
            GridViewJobExperience.DataBind();

            GridViewEducation.DataSource = ProviderEducationBl.GetProviderEducationByProviderId(ProviderId);
            GridViewEducation.DataBind();

            GridViewCertification.DataSource = ProviderCertificationBl.GetProviderCertification(ProviderId);
            GridViewCertification.DataBind();

            provider           = providerbl.GetProviderIntroductionById(ProviderId);
            LblFirstName.Text  = provider.FirstName.ToString();
            LblLastName.Text   = provider.LastName.ToString();
            LblMiddleName.Text = provider.MiddleName.ToString();
            LblHave.Text       = provider.Haves;
            Lblwants.Text      = provider.Wants;
            LblOverView.Text   = provider.OverView;

            SetMetaTags(provider);
            //description.Content = provider.OverView.Substring(0, 100);

            provider         = providerbl.GetProviderContactById(ProviderId);
            LblAddress1.Text = "Hidden"; //provider.Address1;
            LblPhone.Text    = "Hidden"; //provider.Phone;
            LblEmail.Text    = "Hidden"; // provider.Email;

            keyword.Content = ProviderSkillbl.FunGetProviderSkills(ProviderId).ToString();

            DataListSkills.DataSource = ProviderSkillbl.GetProviderSkills(ProviderId);
            DataListSkills.DataBind();
        }
    }
Example #2
0
    protected void Page_Load(object sender, EventArgs e)
    {
        GetCookie();

        if (!IsPostBack)
        {
            ProvideremploymentBL    = new ProviderEmploymentBL();
            ProviderEducationBl     = new ProviderEducationBL();
            ProviderCertificationBl = new ProviderCertificationBL();
            providerbl      = new ProviderBL();
            ProviderSkillbl = new ProviderSkillBL();
        }

        Image1.ImageUrl = "~/ShowImage.ashx?ProviderId=" + ProviderId.ToString();

        GridViewJobExperience.DataSource = ProvideremploymentBL.GetEmploymentByProviderId(ProviderId);
        GridViewJobExperience.DataBind();

        GridViewEducation.DataSource = ProviderEducationBl.GetProviderEducationByProviderId(ProviderId);
        GridViewEducation.DataBind();

        GridViewCertification.DataSource = ProviderCertificationBl.GetProviderCertification(ProviderId);
        GridViewCertification.DataBind();

        provider           = providerbl.GetProviderIntroductionById(ProviderId);
        LblFirstName.Text  = provider.FirstName.ToString();
        LblLastName.Text   = provider.LastName.ToString();
        LblMiddleName.Text = provider.MiddleName.ToString();
        LblHave.Text       = provider.Haves;
        Lblwants.Text      = provider.Wants;
        LblOverView.Text   = provider.OverView;

        provider         = providerbl.GetProviderContactById(ProviderId);
        LblAddress1.Text = provider.Address1;
        LblPhone.Text    = provider.Phone;
        LblEmail.Text    = provider.Email;


        DataListSkills.DataSource = ProviderSkillbl.GetProviderSkills(ProviderId);
        DataListSkills.DataBind();
    }