Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Nov 16, 2010 10:14 PM|LINK
I don't believe that you can use .cshtml files as Web forms user controls. However, you can add a .cshtml file to a Web forms app and reference it as the src of an iframe:
<meta charset="utf-8" />
Make sure you change the profile to one of your choice, otherwise you will be greeted by my ugly mug. You also need to add references to System.Web.Razor, which you will find in Program Files -> Microsoft ASP.NET -> ASP.NET Web Pages -> v1.0 -> Assemblies.
you should also use Nuget to obtain Microsoft.Web.Helpers, which you can copy to the bin directory.