Q:

Get Value from local .resx file

How can i get value from local .resx file in asp.net?

A:

From code-behind:
CultureInfo culture = CultureInfo.CreateSpecificCulture("en-US");

// Gets the value of associated with key "MyKey" from the local resource file for a given culture ("~/MyPage.aspx.en.resx") or from the default one ("~/MyPage.aspx.resx")
object keyValue = HttpContext.GetLocalResourceObject("~/MyPage.aspx", "MyKey", culture);

If you need the value to be populated directly on your page/user control then you can use one of these techniques to get the values from the resource files.

