Пример #1
0
    private void LoadData()
    {
        OtherFunctions obj = new OtherFunctions();
        DataSet        ds  = new DataSet();

        if (t == "copyright") //footer
        {
            lblSubject.InnerText = "Nhập nội dung footer của website:";
            ds = obj.GetFooterWebsite("AgentCat", Globals.AgentCatID, ddlLanguage.SelectedValue);
            if (ds.Tables[0].Rows.Count > 0)
            {
                hasRowFooter     = true;
                fckContent.Value = Convert.ToString(ds.Tables[0].Rows[0]["FooterWebsite" + ddlLanguage.SelectedValue]);
            }
            else
            {
                hasRowFooter = false;
            }
        }
        else if (t == "") //trang contact
        {
            lblSubject.InnerText = "Nhập nội dung thông tin liên hệ:";
            ds = obj.GetContactInfo("Contact", Globals.AgentCatID, ddlLanguage.SelectedValue);
            if (ds.Tables[0].Rows.Count > 0)
            {
                hasRowContactInfo = true;
                fckContent.Value  = Convert.ToString(ds.Tables[0].Rows[0]["ContactInfo" + ddlLanguage.SelectedValue]);
            }
            else
            {
                hasRowFooter = false;
            }
            //MessageBox.Show(hasRowContactInfo.ToString());
        }
    }
Пример #2
0
 protected void Page_Load(object sender, EventArgs e)
 {
     try
     {
         string Lang = Globals.GetLang();
         if (!IsPostBack)
         {
             OtherFunctions obj = new OtherFunctions();
             DataSet        ds  = obj.GetFooterWebsite("AgentCat", Globals.AgentCatID, Lang);
             lblFooterInfo.InnerHtml = Convert.ToString(ds.Tables[0].Rows[0]["FooterWebsite" + Lang]);
         }
     }
     catch { }
 }