I have several DropDown controls on a Web Form which are filled using AJAX call to a method in a class.
I call methods as below:
- FillDistricts();
- FillVillages();
- FillTowns();
I thought these independent calls are creating too many round trips to the server and therefore I altered the class to fill all the DropDowns at once.
I pass the names of all the DropDowns as an array to a class which has a method to populate those DropDowns in a loop.
I want to know whether it will make some difference in page loads.
Use Page.Cache to store the results in, if that cache doesnt exists load the items, and save them into the cache, and may the same results be queried again, check to see if its already in the cache if so load it from the cache