首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > asp.net >

[VB]高分关于Repeater绑定的有关问题

2012-03-16 
[VB]高分求助关于Repeater绑定的问题!废话不说啊,想要达成这样的模样。%dimtestiasintegerfortesti1tospl

[VB]高分求助关于Repeater绑定的问题!
废话不说啊,想要达成这样的模样。
<%dim   testi   as   integer
for   testi=1   to   split(container.dataitem( "picarr "), " <BR> ").getupperbound(0)%>
      <td   valign=top     style= 'padding:5px '   width=25%   > <img   src= " <%#   split(container.dataitem( "picarr "), " <BR> ")(testi)   %> "   border=0   style= 'cursor:hand '   alt= '点击查看大图 '> </td>
<%next%>
一看就明白啊,就是绑定字段picarr中有很多 <BR> ,我按照这个split开来,想有多个就有显示多少个,应该怎么做呢?

[解决办法]
在page_load事件中先写好
dim picarr(5)
picarr(0)= "xxxx "
picarr(1)= "xxxx "
picarr(2)= "xxxx "
picarr(3)= "xxxx "
picarr(4)= "xxxx "
picarr(0)= "xxxx "
然后再绑定

热点排行