转自:http://www.cnblogs.com/DavidFan/archive/2007/06/01/767853.html

代码其实比较简单了,相信大家能够看得懂,我就不多作解释了。

ITempate自定义数据捆绑模板public class MyTemplate : ITemplate
}

用的时候
ITempate自定义数据捆绑模板datalist.ItemTemplate = new MyTemplate();

补充一下, 如果连接的数据是xml数据源, 那么用XPathBinder 代替 DataBinder

相关文章:

  • 2022-01-10
  • 2021-06-29
  • 2021-12-04
  • 2021-11-13
  • 2021-10-28
  • 2022-01-08
  • 2021-09-21
猜你喜欢
  • 2021-07-03
  • 2022-12-23
  • 2021-09-20
  • 2021-12-24
  • 2021-12-13
  • 2021-12-20
  • 2021-08-23
相关资源
相似解决方案