I am trying to use following code in my page layout to display text from resource file but getting error.
<%= SPUtility.GetLocalizedString("$Resources:NewsHeading", "myresourcefile", Thread.CurrentThread.CurrentUICulture.LCID) %>
The name 'Thread' does not exist in the current context
I am using SharePoint Designer 2013. How do I fix this error?