Is it possible to create new ASP.NET directives?
<p>You know how ASP.NET pages typically begin with a Page directive setting certain properties and behaviors for the page? Looks like this:</p>

<pre><code>&lt;%@ Page Title="Contact Us" Language="C#" MasterPageFile="~/Site.master"
    AutoEventWireup="true" CodeFile="ContactUs.aspx.cs" Inherits="ContactUs" %&gt;
</code></pre>

<p>The whole list of currently available directives is here:
<a href="http://msdn.microsoft.com/en-us/library/t8syafc7.aspx" rel="nofollow">http://msdn.microsoft.com/en-us/library/t8syafc7.aspx</a></p>

<p><strong>Does anyone know if it is possible to create new directives?</strong></p>

<p>For example, I'm using reflection to do certain things with pages on the site and I decorate their class declarations with custom attributes. I'd like to know if it's possible to somehow do that even when there isn't a code behind or designer file to find such a class declaration, and all the scripts for the page are in the script tag that's run on the server side.</p>

<p>P.S. I'm aware that I could use the Page directive to set the base class and then also use it to set inherited properties. However, there can be <em>0 - n</em> of these attributes, so that couldn't be done elegantly.</p>
