title: Issue with GetLocalResource object
body: <p>I am trying to access my local resources file in my code-behind. I did some googling since I was unsure of how to do it and found this:</p>
  
  <pre><code>oContent.Text = HttpContext.GetLocalResourceObject("NonSupport").ToString();
  </code></pre>
  
  <p>However, I get an error saying that it needs at least two parameters: <code>VirtualPath</code> and <code>ResourceKey</code>. There is a third, <code>CultureInfo</code> but that one is optional. When I put this in as my virtual path:</p>
  
  <pre><code>HttpContext.GetLocalResourceObject("App_LocalResources/ExpandableListView.aspx.resx", "NonSupport").ToString();
  </code></pre>
  
  <p>I get the following compiler error message:</p>
  
  <blockquote>
    <p>The relative virtual path 'App_LocalResources/ExpandableListView.aspx.resx' is not allowed here.</p>
  </blockquote>
  
  <p>I must be doing something wrong with this since my searches (and some posts I found on here) say all I need to do is call the resource key.</p>
  
  <p>Any thoughts? Thanks!</p>