Inherit from control and create custom one
<p>Im inheriting from GridView control creating MyGridView class which has cs extension, not ascx. U put it in App_Code folder and in web config added: </p>

<pre><code>&lt;add tagPrefix="mgv" namespace="MyProject"/&gt;
</code></pre>

<p>it works fine but when I wanted to convert it to web site project I have problem that it cannot find this reference</p>
