Is there a performance difference between custom server controls and user controls?

Consider two controls that perform basically the same things. For example, a gridview-like widget with a search call, sorting and caching data. Both are associated with the same data source of 10,000 rows. One is a custom server control, and one is a user control. Is there any reason for the performance difference?

It's just interesting what the community thinks about it.

+4
source share
1 answer

Assuming the 2 controls contain the same code, there would be no difference in performance. The difference between them is simple compilation of the code (Usercontrols are compiled directly in the dll of the web application, and server controls are compiled into their own DLLs) and when they are compiled (on their own or using the web application).

After compilation, they are classes, like any other.

+1
source

Source: https://habr.com/ru/post/1300534/


All Articles