title: Setting master pages programmatically for entire application
body: <p>I know the following will set the master page programmatically in an ASP.NET VB.NET application:</p>
  
  <pre><code>Me.MasterPageFile = "~/masterPage.master"
  </code></pre>
  
  <p>Is it possible to programmatically set a master page file that would apply to all pages across an application, instead of having to set it for each individual page?  I want to be able to retrieve this value from a database in order to set the master page file to use.  </p>
  
  <p>If not, is it possible to set more than one master page file in the web.config?</p>