title: Setting Page Async mode to true from Code-Behind
body: <p>Is it possible within my code-behind file to set the asynchronous mode of the page directive.</p>
  
  <p>I have no way of directly modifying the <code>&lt;%@Page %&gt;</code> attribute and and struggling to find a way to implement this in my code-behind.</p>
  
  <p>I have tried in my Page_Load method to add <code>Page.AsyncMode = true</code>, but it returns the following error:</p>
  
  <blockquote>
    <p>is inaccessible due to its protection level</p>
  </blockquote>
  
  <p>Is there any way to do this? Without being able to directly modify the master page?</p>