My site is structured as follows: I have several .ascx files and several .aspx files that contain only one user control.
Now there is also a special .aspx file, which is actually a one-page application on which I register each .ascx element. The reason I have .aspx files for both a single-page application and for each individual βpageβ is because during development I mostly work on one page at a time, so I donβt have to load all other application modules . By .ascx each module in a separate .ascx file, I can make changes to the module, and the changes will easily affect the single-page version of the site, as well as the .aspx page that I use for development purposes.
Hope this helps.
source share