Possible Duplicate:
Using User Controls from Other Projects in ASP
I have the following case: A solution has two projects, A and B. One of them, A, has a UserControl.
Now I build A and add a reference to A in B. How is it possible to load the user control in B and access the controls in that user control?
I want to avoid to rebuild Project B every time i change one of the user controls ?
I use to proceed like this, working with IIS, ASP.NET 4.0 :
<%@ Register TagPrefix="uc1" TagName="myControl" Src="~/ASharedControls/myControl.ascx" %>(VS will warn as path not found, but it should work in IIS)Depending on your pages and controls being codefile/codebehind, you might have to set batch=”false” in web.config compilation element, to avoid multi-compilation conflicts :
Hope this will help