Пример #1
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!Page.IsPostBack)
     {
         using (GetFAQItemsForWeb gfiw = new GetFAQItemsForWeb())
         {
             if (null != Request.QueryString["e"])
             {
                 gfiw.EmployerID = Convert.ToInt32(Request.QueryString["e"]);
             }
             if (gfiw.Tables.Count == 0)
             {
                 gfiw.GetFrontEndData();
             }
             if (!gfiw.HasErrors)
             {
                 rptFAQs.DataSource = gfiw.Tables[0];
                 rptFAQs.DataBind();
                 if (gfiw.Tables.Count == 2)
                 {
                     ClientSpecificFAQ.DataSource = gfiw.Tables[1];
                     ClientSpecificFAQ.DataBind();
                 }
             }
         }
     }
 }
Пример #2
0
 protected void lbtnShowFAQCM_Click(object sender, EventArgs e)
 {
     pnlFAQ.Visible = pnlChoseEmployer.Visible = true;
     using (GetFAQItemsForWeb gfiw = new GetFAQItemsForWeb())
     {
         if (Convert.ToInt32(ddlEmployers.SelectedItem.Value) == 0)
         {
             gfiw.GetFrontEndData();
             //if (!gfiw.HasErrors)
                 //gvFAQItems.DataSource = gfiw.Tables[0];
         }
         else
         {
             gfiw.EmployerID = Convert.ToInt32(ddlEmployers.SelectedItem.Value);
             gfiw.GetFrontEndData();
             //if (!gfiw.HasErrors)
                 //gvFAQItems.DataSource = gfiw.Tables[1];
         }
         //gvFAQItems.DataBind();
     }
 }
Пример #3
0
 protected void lbtnShowFAQCM_Click(object sender, EventArgs e)
 {
     pnlFAQ.Visible = pnlChoseEmployer.Visible = true;
     using (GetFAQItemsForWeb gfiw = new GetFAQItemsForWeb())
     {
         if (Convert.ToInt32(ddlEmployers.SelectedItem.Value) == 0)
         {
             gfiw.GetFrontEndData();
             //if (!gfiw.HasErrors)
             //gvFAQItems.DataSource = gfiw.Tables[0];
         }
         else
         {
             gfiw.EmployerID = Convert.ToInt32(ddlEmployers.SelectedItem.Value);
             gfiw.GetFrontEndData();
             //if (!gfiw.HasErrors)
             //gvFAQItems.DataSource = gfiw.Tables[1];
         }
         //gvFAQItems.DataBind();
     }
 }
Пример #4
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!Page.IsPostBack)
            {

                using (GetFAQItemsForWeb gfiw = new GetFAQItemsForWeb())
                {
                    if (null != Request.QueryString["e"])
                        gfiw.EmployerID = Convert.ToInt32(Request.QueryString["e"]);
                    if (gfiw.Tables.Count == 0)
                        gfiw.GetFrontEndData();
                    if (!gfiw.HasErrors)
                    {
                        rptFAQs.DataSource = gfiw.Tables[0];
                        rptFAQs.DataBind();
                        if (gfiw.Tables.Count == 2)
                        {
                            ClientSpecificFAQ.DataSource = gfiw.Tables[1];
                            ClientSpecificFAQ.DataBind();
                        }
                    }
                }
            }
        }