Is there some setting in VS2K8 or some command line utility that can compile my user controls as .net assemblies? Is it even possible?
A:
Yes, use Web Deployment projects. It compiles a Web site project as a DLL.
Plug-in download: http://www.microsoft.com/DOWNLOADS/details.aspx?FamilyID=0aa30ae8-c73b-4bdd-bb1b-fe697256c459&displaylang=en
How-to video: http://www.asp.net/learn/videos/video-418.aspx
General info: http://weblogs.asp.net/scottgu/archive/2008/01/28/vs-2008-web-deployment-project-support-released.aspxW
GoodEnough
2009-02-20 20:50:26
Could you elaborate on that please? Maybe some links?
Perpetualcoder
2009-02-20 20:57:10
This is great thanks!
Perpetualcoder
2009-02-20 21:18:04
+2
A:
There is no settings provided by default to support this. But there is a hack and is explained here ASP.NET: Reusing Web User Controls and Forms
Ramesh
2009-02-20 20:52:17
A:
If you are referring to pure C# classes that subclass System.Web.UI.WebControls.WebControl, just create a class library project and add a reference to the project in your website.
Ishmael
2009-02-20 21:05:10