using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;

using EnterpriseNET.BusinessLogicLayer;

public partial class contact : System.Web.UI.Page
{
    public string CompanyName,SiteInfoTitle, SeoTitle, SeoKeywords, SeoDesc, SiteContent;

    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            Session["MUID"] = 8;
            try
            {
                int siteConfigID = 1;
                SiteConfig siteConfig = new SiteConfig();
                siteConfig.LoadData(siteConfigID);
                if (siteConfig.exist)
                {
                    //显示站点配置详细内容
                    CompanyName = siteConfig.companyName;
                }
                else
                {
                    Response.Write("数据不存在.");
                    Response.End();
                }

                int siteInfoID = 12;

                SiteInfo siteinfo = new SiteInfo();
                siteinfo.LoadData(siteInfoID);

                if (siteinfo.exist)
                {
                    //显示站点信息详细内容
                    SiteInfoTitle = siteinfo.siteInfoTitle;
                    SeoTitle = siteinfo.seoTitle;
                    SeoKeywords = siteinfo.seoKeywords;
                    SeoDesc = siteinfo.seoDesc;
                    SiteContent = siteinfo.siteContent;

                    Page.DataBind();
                }
                else
                {
                    Response.Write("数据不存在.");
                    Response.End();
                }
            }
            catch
            {
                Response.Write("发生错误.");
                Response.End();
            }
        }
    }
}
