Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

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
add comment

1 Answer

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
add comment

Your Answer

 
discard

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.