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.

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

1 Answer 1

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 and acknowledge you have read our privacy policy.