key value btnidNew New btn_Refresh Refresh
btn_Refresh.Value = ResourceProvider.GetLocalValue("btn_Refresh");
public static string GetLocalValue(string Key) { return ResProvider.GetLocalValue(Key, Culture); }
public string GetLocalValue(string Key, CultureInfo Culture) { string retVal = string.Empty; try { retVal = HttpContext.GetGlobalResourceObject("res", Key, Culture).ToString(); //retVal = HttpContext.GetLocalResourceObject("loc", Key, Culture).ToString(); } catch (Exception ex) { //do any loging string jjj = ""; jjj = "ffffff"; // NullReferenceException es; } return retVal; }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)