GetType on System.Web.UI.Page in ASP.NET - returns different namespace and name
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/202073/asp-net-and-gettype">ASP.Net and GetType()</a>  </p>
</blockquote>



<p>I ran into a slight problem today.</p>

<p>As you can see from the code below, I have an ASP.NET Page called "Users" in the namespace "WebApplicationExtNetTest.Secure".</p>

<p>If I do a "this.GetType()" I get a different .FullName than I expect as seen below:</p>

<pre><code>namespace WebApplicationExtNetTest.Secure
{
    [tWorks.Core.CoreCommons.Attributes.Security("CREATEUSER", "Anger säkerhetsklass för att skapa användare")] 
    public partial class Users : System.Web.UI.Page
    {
         Type t = this.GetType();
         Console.WriteLine(t.FullName); // "ASP.secure_views_users_aspx"
    }
</code></pre>

<p>So, instead of getting "WebApplicationExtNetTest.Secure.Users" I get "ASP.secure_views_users_aspx".</p>

<p>Why? Is there any way to retrieve "WebApplicationExtNetTest.Secure.Users" instead?</p>
