Web User Control in an assembly?

Posted on 2008-01-29
Medium Priority
Last Modified: 2013-11-07
I have all of my code for a simple ecommerce system I wrote in an assembly and I would like to add the Web user Controls that use the assmbly in the assembly itself.

Can anyone point me to a good tutorial to do this or any suggestions?
Question by:alivemedia
1 Comment
LVL 18

Accepted Solution

DropZone earned 2000 total points
ID: 20772448
The code behind of your User Controls will be compiled into the assembly, but the mark-up (*.ascx) files are not compiled.  For that, you need a Custom Server Control, which composes its output internally.

For information on how to create a User Control library, check out this page:


Featured Post

Never miss a deadline with monday.com

The revolutionary project management tool is here!   Plan visually with a single glance and make sure your projects get done.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
The Relationships Diagram is a good way to get an overall view of what a database is keeping track of. It is also where relationships are defined. A relationship specifies how two tables connect to each other. As you build tables in Microsoft Ac…
The video provides a quick and easy steps to migrate MBOX file to well known Outlook PST and Office 365. Besides this, it also supports and migrates more than 20 email clients of MBOX which include AppleMail, Opera, Thunderbird and SeaMonkey effortl…

588 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question