Unable to cast page as page class
<p>I'm attempting to access data on a parent page from a user control. I understand this is not the best way to go about it and I do not want to get into that debate. This is HOW I have to go about it due to constraints beyond my control and pay grade.</p>

<p>I should be able to do this:</p>

<pre><code>myWebBase myPage = (myWebBase) Parent.Page;
int x = myPage.getX();
</code></pre>

<p>But the class name myWebBase is not recognized. Anyone have any ideas why?</p>
