title: Setting the Page-Title in .Net using C# from a Class
body: <p>Question,</p>
  
  <p>How do i set the title of a page from a class.  Is it even possible?  I can and have set the page title from a page itself and a usercontrol.</p>
  
  <p>Can I, How Do I do this via a class using C# .Net</p>
  
  <p>Here is what im looking to do,
  From the Aspx Page i want to call a function that passes in the string title, and have the class set the page title.</p>
  
  <p><strong>SomePage.Aspx.CS</strong></p>
  
  <pre><code>page_onload()   {   setPageTitle(titleValue);   }
  </code></pre>
  
  <p><strong>SetPageTitleClass.CS</strong></p>
  
  <pre><code>public static void setPageTitle(string iTitle)   {   Page.title = iTitle;  }
  </code></pre>
  
  <blockquote>
    <p>The problem is "Page.Title" is not available from the Class</p>
  </blockquote>