Question

I am using the following code in my page layout file but I am getting error.

CODE

<%= SPUtility.GetLocalizedString("$Resources:NewsHeading", "myresourcefile", Thread.CurrentThread.CurrentUICulture.LCID) %>

ERROR

The name 'SPUtility' does not exist in the current context

How do I fix this?

Was it helpful?

Solution

This is the tag for Utilities registration on aspx page.

<%@ Register Tagprefix="Utilities" 
   Namespace="Microsoft.SharePoint.Utilities" 
   Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, 
   PublicKeyToken=71e9bce111e9429c" %>
Licensed under: CC-BY-SA with attribution
Not affiliated with sharepoint.stackexchange
scroll top