Perpetualcoder
Perpetualcoder

Reputation: 13571

Can you build ASP.net User controls as assemblies?

Is there some setting in VS2K8 or some command line utility that can compile my user controls as .net assemblies? Is it even possible?

Upvotes: 1

Views: 129

Answers (3)

Ishmael
Ishmael

Reputation: 32560

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.

Upvotes: 0

Ramesh
Ramesh

Reputation: 13266

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

Upvotes: 2

Related Questions