Why can't I place UserControls inside the App_Code Folder

I was trying to place a UserControl inside the App_Code folder. The main reason for putting the UserControl inside App_Code folder was to make it as a BaseUserControl so that other UserControls are able to inherit from it. Whenever I tried to add a UserControl in the folder it throws the exception saying that UserControls are not permitted in the App_Code folder. This is little strange since I have a webform which is also inside the App_Code folder. The webform (Page) serves as the BasePage for other ASP.NET pages.

powered by IMHO 1.3

Print | posted @ Thursday, March 02, 2006 3:43 PM

Twitter