Hello, this is my first question on here so be gentle!
Im 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: CkiApi.Checkin.Resources.Checkin.OCKI_HeaderText
, where Checkin is the .resx file and OCKI_HeaderText is the resource key.
The problem im facing is that im unable to access the resources from front end aspx code, for example, settign a text property of a label or a validation error message. I have tried the following syntax to no avail:
<asp:Label AssociatedControlID="IdentMethods" EnableViewState="false" ID="lblIdentMethod" runat="server" Text="<%$ Resources: CkiApi.Checkin.Resources.Checkin, OCKI_IdentificationMethod %>"></asp:Label>
the error i get is "The resource object with key 'OCKI_IdentificationMethod' was not found." but regardless of what i set the class name to, i get the same error, im thinking its because its trying to look in the website project but i cant figure out how to tell it to look at the API! Can anyone help?!
i am able to set non server side tags using the following:
<div id="OckiIntroText">
<%=CkiApi.Checkin.Resources.Checkin.OCKI_IntroText%>
</div>
Many Thanks!