I use for this, working with IIS, ASP.NET 4.0:
- myControl.ascx. , A A SharedControls.
- IIS ( , script) B, 'ASharedControls', A SharedControls ( , B, A web.config hierachy, B)
- B A
- B
<%@ Register TagPrefix="uc1" TagName="myControl" Src="~/ASharedControls/myControl.ascx" %> (VS , , IIS) - myControl codebehind B .
, codefile/codebehind, batch = "false" web.config, :
<compilation defaultLanguage="c#" debug="true" batch="false" targetFramework="4.0">
,