Quantcast
Channel: SharePoint 2010 - Development and Programming forum
Viewing all articles
Browse latest Browse all 11571

creating view from xml - localized name

$
0
0

Hi!

I have code that creates list view from xml document:

XmlDocument viewDoc = new XmlDocument();
viewDoc.LoadXml(myViewXmlNode.OuterXml);
SPView srcView = new SPView(list, viewDoc);

I need to localize display name. So, In xml document, view display name specified by this string:  

DisplayName="$Resources:MyCustomResources, ViewAllItems;"

It works fine in SP2013 - it creates view with name "All Items", but in SP2010 it creates view with name "$Resources:MyCustomResources, ViewAllItems;". Looks like SP can't find my resource string. But I've checked all resource files -it's ok. I restarted iis, sptimer, nothing helps.


Viewing all articles
Browse latest Browse all 11571

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>