Click here to Skip to main content
15,893,594 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
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  
Posted
Updated 4-Apr-17 20:59pm
Comments
ZurdoDev 3-Apr-17 13:55pm    
Anything is doable. How can we help?

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.
 
Share this answer
 
Hi,

Is it possible for you to store this serial number in viewstate?
 
Share this answer
 
Comments
Member 9901144 4-Apr-17 9:00am    
I would say yes. As I mentioned, I'm pulling data from database into arraylist and then binding with gridview/ or repeater control. I can store gridview in viewstate, something like
ViewState["dataserialnumber"] = GridView1.DataSource;
.
What is your thoughts?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900