asp.net mvc - Hidden Field VS Database Call -


i have query joins many tables (and time consuming) , returns data view. later want pass data view view. know can use form hidden fields pass data, or re-query database in controller of second view.

i wondering if there "preferred" way of doing far efficiency , performance concerned. better pass data view controller using hidden fields? or better re-query database in controller data?

hidden fields pretty always faster database hit. should leverage use of them when can, re-querying database 1 of main benefits of using hidden fields.


Popular posts from this blog

How to calculate SNR of signals in MATLAB? -

c# - Attempting to upload to FTP: System.Net.WebException: System error -

ios - UISlider customization: how to properly add shadow to custom knob image -