Why user control with code behind file doesn't want to compile under MVC2?
- by kyrisu
I have user control in my MVC2 app placed in the Content folder (it's not supposed to be a view, just reusable part of the app).
UserControl1.ascx looks like:
<@ Control AutoEventWireup="true" Language="C#" CodeFile="~/Content/UserControl1.ascx.cs" Inherits="MVCDrill.Content.UserControl1" %>
<div runat="server" id="mydiv">…