We are using Visual Studio 2010 and .NET 4.0 for an ASP.NET website and MVC for the general architecture.
There are 2 parts to this question. Nothing is on how to do this but what is the right way as per good design and industry standards.
If I have a GridView (AJAX enabled) with 1000 + records (lot of data), and show 100 records at a time, do I go back to database for next 100 records, or store the data in session and just rebind the gridview by taking new data from session?
In the case of an insert, I have 2 choices. One, insert a record in the database and reload the gridview and rebind. Two, insert record in session and database and update the GridView based on session data. I need not download new data from database.
Can you please point me in right direction?