Repeater控件显示不出来
public partial class Default : System.Web.UI.Page
{
BLL.半成品 bbc = new BLL.半成品();
protected void Page_Load(object sender, EventArgs e)
{
}
protected void Button1_Click(object sender, EventArgs e)
{
DataSet ds = bbc.GetAllList();
Repeater1.DataSource = ds.Tables[0];
Repeater1.DataBind();
}
}
以上是我的代码,我打断点测试过 ds.Tables[0] 有1277条数据, 也就是数据源没有什么问题, 不知道问题在那里哦,请高人指教.
{
BLL.半成品 bbc = new BLL.半成品();
protected void Page_Load(object sender, EventArgs e)
{
}
protected void Button1_Click(object sender, EventArgs e)
{
DataSet ds = bbc.GetAllList();
Repeater1.DataSource = ds.Tables[0];
Repeater1.DataBind();
}
}
以上是我的代码,我打断点测试过 ds.Tables[0] 有1277条数据, 也就是数据源没有什么问题, 不知道问题在那里哦,请高人指教.
...全文
相关推荐
repeater控件显示日期
repeater控件显示日期
Repeater控件实现编辑、更新、删除等操作示例代码
如何在Repeater控件中实现像GridView控件一样的编辑、更新、删除功能?下面有个不错的示例,感兴趣的朋友可以参考下,希望对大家有所帮助
ASP.NET中repeater控件用法实例
主要介绍了ASP.NET中repeater控件用法,实例分析了repeater控件数据绑定、删除等相关技巧,具有一定实用价值,需要的朋友可以参考下
Repeater控件使用
能够熟悉该控件的使用,更好的利用Asp控件来实现更多的功能
数据显示控件Repeater和datalist的用法
主要讲述数据显示控件Repeater和datalist的用法 用实例说明 。。


