转发器项目数据绑定 [英] repeater item databound

查看:55
本文介绍了转发器项目数据绑定的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个转发器控件,我绑定到一个有两行的数据表。
我的转发器中的
在项目模板中有一个图像控件和一个超链接控件。
$ b item_databound上的$ b我给图片控件提供图片网址。

之后我仍然会收到错误,如果我有两行,则需要图片网址。

n其工作正常单行。



plz help

i have a repeater control which i am binding to a datatable which has two rows.
in my repeater there is one image control and one hyperlink control in item template.
on item_databound i am giving image url to image control.
after this i am still getting error that image url is required if i have two rows.
n its working fine for a single row.

plz help

推荐答案

访问此处了解更多..



http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.repeater.itemdatabound%28v=vs.110%29.aspx [< a href =http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.repeater.itemdatabound%28v=vs.110%29.aspxtarget =_ blanktitle =新窗口> ^ ]
visit here to understand more..

http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.repeater.itemdatabound%28v=vs.110%29.aspx[^]


这篇关于转发器项目数据绑定的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆