免费视频淫片aa毛片_日韩高清在线亚洲专区vr_日韩大片免费观看视频播放_亚洲欧美国产精品完整版

打開(kāi)APP
userphoto
未登錄

開(kāi)通VIP,暢享免費(fèi)電子書(shū)等14項(xiàng)超值服

開(kāi)通VIP
[精]合并查詢

 void bindC()
    {
        string sql = "select * from news_class where cparentid=20"
                  + ";select top 10 id,title,dtt from news where titleimg='' and property=1 order by id desc"
                  +";select top 5 id,title,titleImg from news where titleimg<>'' and property=1 order by id desc";


        DataSet ds = DbHelperSQL.Query(sql);
        this.Repeater1.DataSource =ds.Tables[0];
        this.Repeater1.DataBind();

        this.RepeaterTopNews.DataSource = ds.Tables[1];
        this.RepeaterTopNews.DataBind();


        for (int i = 0; i < ds.Tables[2].Rows.Count; i++)
        {
            strpics += ds.Tables[2].Rows[i]["titleimg"];
            if (i < 4) {strpics += "|"; }
            strlinks += "news_shows.aspx?Nid=" + ds.Tables[2].Rows[i]["id"] + "|";
            strtitles += ds.Tables[2].Rows[i]["title"] + "|";
        }

        //this.Repeater2.DataSource = ds.Tables[2];
        //this.Repeater2.DataBind();
        //this.DataListimg.DataSource = DbHelperSQL.Query("select top 5 id,title,titleimg from news where titleimg<>'' order by id desc");
        //this.DataListimg.DataBind();
    }

本站僅提供存儲(chǔ)服務(wù),所有內(nèi)容均由用戶發(fā)布,如發(fā)現(xiàn)有害或侵權(quán)內(nèi)容,請(qǐng)點(diǎn)擊舉報(bào)。
打開(kāi)APP,閱讀全文并永久保存 查看更多類似文章
猜你喜歡
類似文章
使用嵌套的Repeater控件顯示分級(jí)數(shù)據(jù)
建設(shè)網(wǎng)站之ASP.NET中實(shí)現(xiàn)模版的動(dòng)態(tài)加載
DataSet和DataTable有用的方法
C#基礎(chǔ)--DropDownList、CheckBoxList、RadioButtonList、ListBox控件使用
一天精通asp.net:專為有其他語(yǔ)言基礎(chǔ)的人 (轉(zhuǎn))
C#2.0全能數(shù)據(jù)庫(kù)組件 (通俗易懂)
更多類似文章 >>
生活服務(wù)
分享 收藏 導(dǎo)長(zhǎng)圖 關(guān)注 下載文章
綁定賬號(hào)成功
后續(xù)可登錄賬號(hào)暢享VIP特權(quán)!
如果VIP功能使用有故障,
可點(diǎn)擊這里聯(lián)系客服!

聯(lián)系客服