SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

In the Sharepoint project we have added few resource files and mapped them to Sharepoint resource folder(Delpoyment location-{SharePointRoot}\Resources).

using the below code, we tried to read resource string value from webpart design page(ASCX)

asp:Label ID="lblID" runat="server" Text="<%$Resources:ResourceFileName, ResourceKey%>"

The code was working well in sharepoint 2010 and but for sharepoint2013 we are getting exception as "The name 'InitializeControl' does not exist in the current context".

please help us.

share|improve this question
I have the same issues and I looking for a solution – Salvatore Di Fazio Feb 14 '13 at 14:27

I did not find any solution, but alternatively i did it from code behind. On page_load we are calling IntilizeResourceStrings method which will do the same.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.