0

I am trying to add xsltlistviewwebpart and it has to be from announcement list.

How to write this line?

string str = "$Resources:??";//How to get announcement list reference here?
public static string GetLocalizedStringforannouncement(SPWeb web)
{
return SPUtility.GetLocalizedString(str, "core", web.Language);
}

Please help.

  • Can anyone confirm is it $Resources:core,announceList?? – user13408 Jun 26 '14 at 18:18
1

Here you go:

For title:

string myListTitle = SPUtility.GetLocalizedString("$Resources:core,announceList;", "core", web.Language);

For Description:

string myListDesc = SPUtility.GetLocalizedString("$Resources:core,announceList_Desc;", "core", web.Language);

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy