title: ASP.NET: two ways to access global resource programmatically
body: <p>I know that I can set a Label's text by using the following syntax.</p>
  
  <pre><code>lblMessage.Text = (string)GetGlobalResourceObject("resxFile", "message");
  </code></pre>
  
  <p>What are the benefits and drawbacks associated with using the below syntax?</p>
  
  <pre><code>lblMessage.Text = Resources.resxFile.message;
  </code></pre>
  
  <p>The second method will not work for local resource files. Is there a different syntax for local resource files?</p>