Web User Control Reuse

S

Susannah

Hi There,

I am currently working on reworking the architure of two sets of Web
Applications. They share a lot of the same User Controls and
functionality, which we would like to have in seperate Web User
Control Library Projects so that we can resue them.

We have set up 5 different projects to house these controls. There is
a solution containing these projects, as well as a ASP.NET Web
Application. The .aspx pages in the Application project reference the
controls from the other projects. The way that we did this is to
register them using their assemblies and import the projects. This
however does not reference the .ascx pages.

I have been reading some of the messages in regards to User Control
reuse and have seen it stated that it is not possible to do so, that
the .ascx pages must be contained in the same project as the ASP.NET
Web Application. And that a way to get around this is to re-write the
controls as Server Controls.

I was just wondering if I could have this confirmed, and / or pointed
in the right direction to learn more about this. To me, it makes sense
to have a set of reusable controls that you would want to use for
multiple applications. If it is not available now, I would hope that
it is on the list for the future.

Many thanks,
Susannah
 

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

Members online

Forum statistics

Threads
473,774
Messages
2,569,596
Members
45,143
Latest member
DewittMill
Top