Click here to Skip to main content
15,885,365 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi Coders,
I have a MVC page in which I need to bind a drop downs with values coming from database.
I am not able to come to conclusion which is better in performance from following :
1) Using code behind
2) Using AJAX

Which will be better, I need to bind drop downs at page load.
Please suggest..

Thanks in advance for your suggestions.

Regards,
Aviansh
Posted
Comments
Jameel VM 9-Jan-15 7:57am    
If you are trying to load dropdown on first time both of the performance will be same.Because both are loaded from the server.If you are trying to implement cascading dropdown functionality ajax will give the better performance.Because you no need to send the all webpages to the server.
Avinash6474 12-Jan-15 1:34am    
Thanks for your suggestion Jameel. :)
-Avinash
Avinash6474 27-Jan-15 6:21am    
HI,
I am having 5 drop downs on page,out of 2 will fill at page_load and remaining will fill on selected_index_change of resp drop downs.
When used jquery on selection of item the drop downs are resetting to original and loosing the selected values.
How to overcome this?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900