The first blog post I ever wrote was titled " Turning an ascx user control into a redistributable custom control ". It was almost exactly five years ago, and it still gets a lot of hits today. And interestingly, this new blog post is about solving essentially the same problem, but with a much nicer Razor based solution than was available at the time. The general issue we're trying to solve is to encapsulate reusable pieces of UI. Unfortunately, this has typically meant choosing between two approaches, each having their pros and cons (this mirrors the intro from my old post): Custom code in a library project: this makes it easy to produce a binary that can be used in multiple projects without having to keep source files around...(read more) ...
Go to the complete details ...