I'm working on a web page that should display huge amounts of data in a GridView. Obviously I would use some sort of paging.
What I want to know is the best way of doing such a thing, what is the norm?
Should I connect to database each time for every page of GridView? Should I connect to database one time for the first page and load the rest of the data in some kind of background task? Should I load a few pages of data in advance, in the background, to lessen users waiting time?
Any advice is appreciated.
Do keep in mind I'm relatively new to programming and thank you!