简体   繁体   中英

Where are objects created in code behind stored in memory?

Say we create a 'DataTable' object from a page's code-behind in ASP.NET. Where exactly is this datatable held in memory? Client-side or Server-side? Application pool?

Thanks!

Instances of classes are stored in memory on the server-side, in the managed heap to be specific.

Here's a great article explaing the concepts of in-memory storage of variables and objects:

Server-side, in your server's memory. Be carefull when you load a lot of records to the datatable, it may cause a OutOfMemoryExeption.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM