title: Resource file for a Custom ASP.net control (.ascx) InvalidOperationException
body: <p>I have a control containing some text which I want to get from a resx file, I thought I could just create a file called ControlName.ascx.resx but that doesn't seem to be working.</p>
  
  <p>I'm using </p>
  
  <pre><code>label1.InnerText = (string)GetLocalResourceObject("default");
  </code></pre>
  
  <p>To get the value from the resource file but it keeps throwing up an InvalidOperation Exception.</p>
  
  <p>Am I right about how resx files work or does it only work for Pages?</p>
  
  <p>I have the same code working on an aspx page. </p>