再出50分,再问DataList的问题,谁解决给100分
谁能解决就连同
http://expert.csdn.net/Expert/topic/2117/2117989.xml?temp=.7457086的50分一块给他
问题是,我在一个页面上用了一个DataList 一个DataGrid,绑定的也是同一个数据源
private void Page_Load(object sender, System.EventArgs e)
{
fid=Int32.Parse(Request.Params["fid"]);
XDown.nClasss mynclass=new XDown.nClasss();
DataList1.DataSource=mynclass.GetChildList(fid);
DataList1.DataBind();
DataGrid1.DataSource=mynclass.GetChildList(fid);
DataGrid1.DataBind();
}
为什么显示的结果却不一样,而且添加的数据的时候,DataList是一条能显示,一条不能显示,DataGrid就没有问题,大家帮忙看看吧
大家去看一下有问题的页面,亲自试一下吧
http://210.83.119.69/net/test1.aspx?fid=1