extension method in gridview eval
<p>I have an extension method that I wrote but when I use it on an aspx page to render a label inside a gridview, it doesn't work.</p>

<pre><code>&lt;asp:Label ID="lblStatus" runat="server" Text='&lt;%# Eval("TheStatus").ToMyStatus() %&gt;'&gt;&lt;/asp:Label&gt;
</code></pre>

<p>The extension method is a file called Appfunctions.cs:</p>

<pre><code>public static class Extensions
{
    public static string ToMyStatus(byte TheStatus)
    {
        //mycode
    }
}
</code></pre>

<p>I've seen posts that say a namespace needs to be added with the Imports statement in the aspx page but the extention ToMyStatus is not in any particular namespace.</p>

<p>Any suggestions much appreciated.</p>

<p>Thanks.</p>
