title: Adding Custom attributes to the page directive in asp.net-mvc
body: <p>I have created a base class that derives from ViewPage with a custom public attribute that I want to be able to set in the @page directive however I am getting the following error.</p>
  
  <p><strong>Error 24  Error parsing attribute 'attrame': Type 'System.Web.Mvc.ViewPage' does not have a public property named 'attrname'.</strong></p>
  
  <p>the directive looks as so</p>
  
  <pre><code>&lt;%@ Page Title="" Language="C#" AttrName="Test" Inherits="Web.Helpers.Views.BaseViewPage" %&gt;
  </code></pre>
  
  <p>The problem seems to be that it doesn't recognize the base class from the <strong>Inherits</strong> tag.  I thought this should work from reading around on the internet.  Has anyone else tried this or have any idea why this isn't working?</p>