Thursday, February 14, 2013

Resource File

Use the below property to get the currentculture in Resource file

public static string "PropertyName"
        {
            get
            {
                return SPUtility.GetLocalizedString("$Resources:resourcefilename,PropertyName", "resourcefilename", Convert.ToUInt32(System.Globalization.CultureInfo.CurrentCulture.LCID));
            }
        }

No comments:

Post a Comment