2个回答
2009-10-19
展开全部
//数据绑定
protected void dlcontents_ItemDataBound(object sender, DataListItemEventArgs e)
{
Label lblId = e.Item.FindControl("lblId") as Label;
Label lblPingLun = e.Item.FindControl("lblPingLun") as Label;
lblPingLun.Text = (ArticleManage.GetCommentsById(Convert.ToInt32(lblId.Text))).ToString();
}
protected void dlcontents_ItemDataBound(object sender, DataListItemEventArgs e)
{
Label lblId = e.Item.FindControl("lblId") as Label;
Label lblPingLun = e.Item.FindControl("lblPingLun") as Label;
lblPingLun.Text = (ArticleManage.GetCommentsById(Convert.ToInt32(lblId.Text))).ToString();
}
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询