Private Sub get_bind() Dim csPagesort As New db.bbspagesortOp() Dim dsPagesort As New DataSet() csPagesort.fill("available>0", dsPagesort) rptPagesort.DataSource = dsPagesort.Tables(0).DefaultView rptPagesort.DataBind() End Sub Private Sub rptPagesort_ItemDataBound(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.RepeaterItemEventArgs) Handles rptPagesort.ItemDataBound Dim csPage As New db.bbspageOp() Dim dsPage As New DataSet() csPage.fill("sortid=" & CType(e.Item.DataItem, DataRowView).Row.Item("id"), dsPage) CType(e.Item.Controls(3), Repeater).DataSource = dsPage.Tables(0).DefaultView CType(e.Item.Controls(3), Repeater).DataBind() End Sub忘了贴了 感冒严重影响脑力
{
if (e.Item.ItemType == ListItemType.Item || e.Item.ItemType == ListItemType.AlternatingItem)
{
( ( Label ) e.Item.FindControl("title") ).Text = ( ( DataRowView )e.Item.DataItem ).Row.ItemArray[2].ToString();
}
}
Dim dsPagesort As New DataSet()
csPagesort.fill("available>0", dsPagesort)
rptPagesort.DataSource = dsPagesort.Tables(0).DefaultView
rptPagesort.DataBind()
End Sub
Private Sub rptPagesort_ItemDataBound(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.RepeaterItemEventArgs) Handles rptPagesort.ItemDataBound
Dim csPage As New db.bbspageOp()
Dim dsPage As New DataSet() csPage.fill("sortid=" & CType(e.Item.DataItem, DataRowView).Row.Item("id"), dsPage)
CType(e.Item.Controls(3), Repeater).DataSource = dsPage.Tables(0).DefaultView
CType(e.Item.Controls(3), Repeater).DataBind()
End Sub忘了贴了 感冒严重影响脑力