使用用户控件,需要在引用页面额外添加一些代码,就像Repeater中的ItemTemplate可以写一些html代码之类了。
类似如下结果:
于是,google得结果:
http://forums.asp.net/p/1235359/2240944.aspx
自己照抄的页面: