如何遍历转发器中的每个项目 [英] how to iterate through every item in repeater
问题描述
大家好,
我想要做的是将一些数据加载到转发器中,然后在转发器下它们是一个下载按钮。现在单击该按钮我将.csv文件中的数据保存在excel中打开..
我现在在哪里:
i可以将数据加载到转发器,每行都有一个链接按钮,该行的ID附加到该行,当我点击与特定行相对应的下载链接时。我要以excel格式保存这些数据。但是....
reqiurement:
现在我的要求而不是每行都有下载按钮,他们应该是一个按钮,点击它应该获得excel中的所有数据。我无法通过的是迭代转发器中的每个项目。
谢谢
Hi all,
what i am trying to do is loading some data into a repeater and then under a repeater their is a download button. now on clicking that button i am saving that data in .csv file to be opened in excel..
where i am now:
i can load data into repeater with each row having a linkbutton with an ID of that row attached to it and when i click on download link correponding to particular row. i am getting to save that data in excel form.but....
reqiurement:
now my requirement instead of having download button for every row, their should be one button and clicking on it should get all the data in excel. what i couldnot get through is iteration through every item in repeater.
Thanks
推荐答案
@ jay123
循环使用Repeater ...
@jay123
To loop through Repeater ...
嗨深蓝色,
i已尝试过每个选项,并且还尝试了给出的选项。 instaed of button1.text我使用了字符串a,a的值为
hi deep blue,
i have tried every option and the one given was also tried. instaed of button1.text i have used string a , and a has value as
106 html是一个数据在文本编辑器中打开时,字符串''a''出现..
that 106 html is a data that comes in string ''a'' , when opened in a text editor..
这篇关于如何遍历转发器中的每个项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!