Brian Webster
Brian Webster

Reputation: 30875

ASP.NET - How do I package a Web User Control (.ascx) in a DLL for use in other applications?

I have developed a paging control that I would like to use in a variety of applications, both C# and VB.NET.

I'd like to package the entire thing, markup and all, into a DLL which I can add as a reference from my other applications' bin folders.

If this is not possible, or is a very bad idea, what is the recommended method for deploying a web user control amongst multiple applications?

(I like how easy it is to utilize Ajax Toolkit controls from a single DLL, although I'm not sure if those are custom controls or web user controls)

Thanks

Upvotes: 2

Views: 1920

Answers (1)

Claudio Redi
Claudio Redi

Reputation: 68439

Just in case you still interested I paste a link to a codeproject article where you have a interesting option for creating a user control library. I implemented it for a project a worked very well.

Here is the link

http://www.codeproject.com/KB/user-controls/EmbeddedUserControl.aspx

Upvotes: 1

Related Questions