title: how to access object from inheritance
body: <p>Hello I want to access an object from inheritance in my project,but I cant find a way
  My page is ;</p>
  
  <pre><code>public partial class siteler_page : siteDynamic
  {
      public static string pageType = "contentpage";
      protected void Page_Load(object sender, EventArgs e)
      {
      }
  }
  </code></pre>
  
  <p>And the main class is ; (i want to access that pageType paramter in onpreinit)</p>
  
  <pre><code>public class siteDynamic : System.Web.UI.Page
  {
  
      public siteDynamic()
      {
          //
          // TODO: Add constructor logic here
          //
      }
      protected override void OnPreInit(EventArgs e)
      {
  
      // I want to access the pageType in here 
  
          base.OnPreInit(e);
      }
  }
  </code></pre>
  
  <p>Any help is appreciated,thans</p>