Label Name from Resource File in Localization..... RRS feed

  • Question

  • User-1309406722 posted


    I am using resource file but i have created separate class library project for Localization name is Localization.Service and add resource files in it name of resource files are Strings.en-US and Strings.ar-SA and it has one value UsrName.

    When i am trying to get resource file data from aspx file so it is giving error "The resource object with key UsrName was not found".

    Vallet Parking is my solution file mentioned in code.

    My Code is below:

    <asp:Label ID="lblUserName" runat="server" AssociatedControlID="UserName" Text="<%$ Resources:ValletParking.Localization.Service.Strings,UsrName %>"></asp:Label>

    Thanks in advance.

    Friday, March 14, 2014 4:04 PM

All replies

  • User2119946224 posted

    Simply you have to make your resource project access modifier public:

    Select your resource file class library and press F4, property window will show up and change access modifier to public. Rebuild your project and try again.


    Tuesday, June 20, 2017 5:42 AM