A user control is not well suited to reusability because if you need the same functionality in another project you have to copy all the code over. If you find a bug in one copy, then you will need to go to everywhere it is re-used to update the code. Also,
this code is re-compiled everytime the ASPNet worker process is restarted or when the cache is flushed. ASPNet worker process is generally restarted once a day (I believe every 23 hours or thereabouts) and the cache is typically flushed whenever all sessions
have timed out (not a problem in a high volume site where visitors are on 24x7). The bottom line is that I think you are using user controls in a manner for which they are not optimized. That is not to say they don't/won't work, just that there are better
alternatives.
jbrinkman
Star
9822 Points
1963 Posts
Re: Crude Web Matrix Architecture (review request)
Jun 18, 2004 07:35 PM|LINK