使用项目索引值从转发器重定向? [英] redirect from repeater using item index value?
本文介绍了使用项目索引值从转发器重定向?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
带有数据的转发器我使用linkbutton在另一个页面中加载更多数据
repeater with data abind I'm use linkbutton to load more data in another page
Response.Redirect("Default3.aspx?Name="+this.Repeater1.Items[4].DataItem.ToString());
显示此错误消息
索引已经删除范围。必须是非负的且小于集合的大小。
show this error message
Index was out of range. Must be non-negative and less than the size of the collection.
推荐答案
它显示从0到4的相同错误,我在转发器中有5个项目。我想要当点击链接按钮在另一个页面中显示更多数据时,取每个原始的标签值
任何人都知道代码
it show the same error from 0 to 4 and i have 5 items in repeater .i wanna when click linkbutton show more data in another page with taken the label vale of every raw
any one know the code
这篇关于使用项目索引值从转发器重定向?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文