简体   繁体   中英

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

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM