示例#1
0
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            string TypeName = Request.QueryString["TypeName"];
            if (Request.QueryString["id"] != null)
            {
                id = Request.QueryString["id"];

                DataTable dt = GetRepHome(TypeName);
                RepHome.DataSource = dt;
                RepHome.DataBind();
                RepTitle.DataSource = dt;
                RepTitle.DataBind();
                RepCount.DataSource = dt;
                RepCount.DataBind();
            }
            if (Request.QueryString["SiteId"] != null)
            {
                SiteId = Request.QueryString["SiteId"];
                DataTable dt = GetSiteAffiches();
                RepTitle.DataSource = dt;
                RepTitle.DataBind();
                RepHome.DataSource = dt;
                RepHome.DataBind();
                RepCount.DataSource = dt;
                RepCount.DataBind();
            }
            NewsBind();
        }
    }
示例#2
0
 public SrvHome()
 {
     _repHome = new RepHome();
 }