<TD align=
</TR>
<TR>
<TD align=
</TR>
</TABLE>
</TD></TR>
<TR>
<TD>
</TD></TR>
</TABLE>
(
protected void Page_Load(object sender
{
// 在此處放置用戶代碼以初始化頁面
if(!Page
{
ST_BindData();
}
}
private void ST_BindData()
{
DataView ST_myDv;
DataView ST_myDv
System
//調用ST_myFlower類的ST_GetNewFlower()方法
ST_myDv=ST_myFlower
//獲取數據源DataView的對象
dg_NewFlower
//將數據綁定到數據集
dg_NewFlower
//調用ST_myFlower類的ST_GetFlowerByHits()方法
ST_myDr= ST_myFlower
dl_HitFlower
dl_HitFlower
//調用ST_myComment類的ST_GetCommentTop
ST_myDv
dg_CommentFlower
dg_CommentFlower
}
(
ST_GetNewFlower()方法用來獲取最新
public DataView ST_GetNewFlower()
{
String ST_strsql;
DataSet ST_myDs;
//創建獲得最新
ST_strsql=
ST_myDs=ST_ExecuteSql
[
From:http://tw.wingwit.com/Article/program/net/201311/15753.html