Click here to Skip to main content
15,992,983 members
Please Sign up or sign in to vote.
2.00/5 (1 vote)
See more:
I have to store a gridview and a dataset between postbacks. Should I do it by means of static and or session state? Which is better for a blog? Why?
Posted

Static variable share all user ,but session are not provided this facility.
static variable hold the value and session not this done.
 
Share this answer
 
You don't store either. If anything you persist the parameters necessary to query the data and reconstitute the grid.
 
Share this answer
 

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