更新时间:2023-11-24 11:02:22
首先,您需要创建一个DataList项目Templet,其中将显示数据,然后尝试此操作...
First of All you need to create a Item Templet of DataList in which data will be displayed, then try this...
If reader.Read() Then
DataList1.DataSource = dictionary1.Tables("postcomment")
Me.DataBind()
Else
DataList1.Visible = False
nocomment.Text = "No Comments Posted"
End If
插入了Me.DataBind(),请尝试调用
的bind方法
DataList1.DataBind()
Inseted of Me.DataBind() please try to call a bind method of
DataList1.DataBind()