日期:2014-05-20  浏览次数:20423 次

两个问题,有点难度!商品对比和显示方式问题!
1..net(c#)如何实现商品对比的功能呀?
类似http://list.taobao.com/browse/14-1403/1403.htm

2.如何实现商品列表显示方式:文字列表,图片列表
我做了两个DataList然后动态绑定但是不行!
文字列表
DataList1.DataBind();
图形列表
DataList2.DataBind();

动态绑定
  string   dd   =   "DataList1 ";
dd.DataBind();
错误提示:“string”并不包含“DataSource”的定义



------解决方案--------------------
樓主這樣:
string dd = "DataList1 ";
dd.DataBind();也行????

樓主這樣不行嗎?
DataList1.DataSource=DS;
DataList1.DataBind();

DataList2.DataSource=DS;
DataList2.DataBind();

------解决方案--------------------
文字列表
DataList1.DataBind();
图形列表
DataList2.DataBind();
同时只能绑定一个DataList呀


你的数据源类型是啥?DataReader? 这个不行,要用DataSet