I’ve just been having a bit of an issue with User Controls though. and found out that the Inherits attribute on page and control are not needed. When I inherited from the class on a page I was fine, but Inheriting from the User Control class gave me errors.
So the following will work and give you code completion…
<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" %>
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="Example.ascx.cs" %>