title: ASP.net controls not found in the code behind when implementing resources
body: <p>Since we implemented globalization in our ASP.net <em>website</em>, we are getting some intellisense problems.</p>
  
  <p>When the resource is added to an asp.net control, we receive errors.
  Even though the error is shown in visual studio, the application works!</p>
  
  <p>For example, the following button</p>
  
  <pre><code> &lt;asp:Button runat="server" ID="BtnSave" Text="&lt;%$ Resources:ResourceName, Save %&gt;" OnClick="BtnSave_Click" /&gt;
  </code></pre>
  
  <p>Is not recognized in the code behind:</p>
  
  <p><img src="https://i.stack.imgur.com/MLv5B.png" alt="intellisense problem"></p>
  
  <p>The error is only shown when the code behind is open. But in the browser it works!</p>
  
  <p>The same button without the resource reference works well:</p>
  
  <pre><code> &lt;asp:Button runat="server" ID="BtnSave" Text="Save" OnClick="BtnSave_Click" /&gt;
  </code></pre>
  
  <p>This is a custom SQL resource provider factory, added to the web.config:</p>
  
  <pre><code> &lt;globalization resourceProviderFactoryType="MyNamespace.SqlResourceProviderFactory" /&gt;
  </code></pre>
  
  <p>I tried deleting the cache and restarting the computer already.</p>
  
  <p>Do you have any tips on how to find the issue?</p>
  
  <p>Thanks in advance.</p>