Tuesday, September 20, 2011

using resx file in asp.net

add new item to asp.net project "resource file"

enter name and value pair in this file

put this file in App_GlobalResources

use below code to access file

public string GetErrorString(string validationString)
{
return Convert.ToString(GetGlobalResourceObject("fileName", validationString), CultureInfo.InvariantCulture);

}

No comments:

Post a Comment

SharePoint document metadata not updating

I faced a weird issue today, Metadata for document which has lookup column was not updating even after saving the item. There was no erro...