how to share user controls across apps

  • Thread starter Thread starter dx
  • Start date Start date
D

dx

I have 3 vb.net web applications. I would like all 3 to have access to a
library of user controls. server controls wouldn't cause a problem but these
are user controls (ascx.) From each solution I reference the user control
library project and create a virtual directory under each applicatoin that
links to the folder that contains the ascx files but I get a runtime error
like:

Description: An error occurred during the parsing of a resource required to
service this request. Please review the following specific parse error
details and modify your source file appropriately.

Parser Error Message: Could not load type 'Reg.AffFooter'.

Any ideas? Much thanks in advance.

Stan
 
You can accomplish this in a "pretty ugly way".
Try publishing your user controls in GAC.
 
Steve,

Thanks for the reply. I'm going to have (another) decent sized project if I
have to rewrite our user controls as server controls.

I found this article yesterday evening. Anyone have experience with this
approach?

http://www.codeproject.com/aspnet/ctrlreuse.asp

Thank You and have a great weekend,
stan
 
Thanks for your reply Felipe. I'm curious, do you consider this ugly due to
performance degredation or some other reason?

Thanks again!

stan
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top