title: Access resx resource files from another project
body: <p>I'm using asp.net 3.5, my solution currently has 2 projects, an API class project and a website project, within the class project I have a resource file named checkin.resx. For me to be able to access the resource files from my website project, I had to set the "Access Modifier" to public, this allowed me to use a strongly typed name to acces the resources for example: <code>CkiApi.Checkin.Resources.Checkin.OCKI_HeaderText</code>, where Checkin is the .resx file and OCKI_HeaderText is the resource key.</p>
  
  <p>The problem I'm facing is that I'm unable to access the resources from front end aspx code, for example, setting a text property of a label or a validation error message. I have tried the following syntax to no avail:</p>
  
  <pre><code>&lt;asp:Label AssociatedControlID="IdentMethods" EnableViewState="false" ID="lblIdentMethod" runat="server" Text="&lt;%$ Resources: CkiApi.Checkin.Resources.Checkin, OCKI_IdentificationMethod %&gt;"&gt;&lt;/asp:Label&gt;
  </code></pre>
  
  <p>the error I get is </p>
  
  <blockquote>
    <p>The resource object with key 'OCKI_IdentificationMethod' was not found.</p>
  </blockquote>
  
  <p>but regardless of what I set the class name to, I get the same error, I'm thinking its because its trying to look in the website project but I can't figure out how to tell it to look at the API! Can anyone help?</p>
  
  <p>I am able to set non server side tags using the following:</p>
  
  <pre><code>&lt;div id="OckiIntroText"&gt;
      &lt;%=CkiApi.Checkin.Resources.Checkin.OCKI_IntroText%&gt;
  &lt;/div&gt;
  </code></pre>