如何在ASP.NET中打印多个页面的数据[C#] [英] How to print the data the more than one pages in ASP.NET [C#]
本文介绍了如何在ASP.NET中打印多个页面的数据[C#]的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好,
我从dB中提取单个数据(产品的序列号)并插入到ArrayList中。然后,它与Repeater控件绑定。所以,现在我有序列号的列表,现在我需要每页打印每个序列号。
可行吗?我现在正在使用网页表格。
谢谢。
我是什么尝试过:
这里输出:
Hi All,
I'm pulling the single data(serial number of the product) from dB and inserted into ArrayList. Then, it's binding with Repeater control. So, now I have list of serial #'s, now I need to print each serial number per page.
Is it doable? I'm using a web form as for now.
Thanks.
What I have tried:
Here the output:
806-17090-94819
806-17090-51387
806-17090-56811
806-17090-99677
推荐答案
hi ..
您可以将完整的数据存储到数据表中并将此数据表添加到查看状态。
ViewState [givename] = dt ;
,在第二页上重温时从这个数据表中获取数据。
hi..
you can store the complete data into data table and add this data table to view state.
ViewState["givename"] = dt;
and while retriving on second page get data from this data table.
您是否可以将此序列号存储在viewstate中?
Hi,
Is it possible for you to store this serial number in viewstate?
这篇关于如何在ASP.NET中打印多个页面的数据[C#]的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文