How can I embed a user control in a DLL?
Ideally, I would still be able to define the control’s markup in an ascx file, but if I understand correctly you cannot embed template files into DLLs.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Take a look at this article
http://msdn.microsoft.com/en-us/library/aa479318.aspx
It is a little hackish, essentially you need to publish your website as a an unupdatable site. Then grab the web dll from the output and reuse that in your real web project.
I’d probably just go the route of creating Server Controls. These will be easier to maintain.