What happens to a dataset when your done using it. For example if I create and fill a dataset for a grid, when the user leaves that page or logs out I assume the dataset is still in memory?
Does each user get their own instance of the dataset? In other words, if 2 users hit the same page that uses a grid are they each served their own instance of the dataset from server memory?
If you do not put it into session or application cache, it will be garbage collected as soon as the page renders.
ASP.NET is stateless, and unless you use session or cache, or have it as a static method, it goes out of scope ASAP.
Example, if you have the following in page load.
At the end of this method call, the myDataset would be up for garbage collection.