AbstractUserControlResourcePrefix Property |
Prefix for the resource strings which are used for the localization by the control and its child controls.
Namespace: CMS.Base.Web.UIAssembly: CMS.Base.Web.UI (in CMS.Base.Web.UI.dll) Version: 13.0.131
Syntaxpublic virtual string ResourcePrefix { get; set; }
Property Value
Type:
String
RemarksIf custom translation is not defined, the default resource string translation is used. Localization is called through
GetString(String, String) method.
ExamplesThe following code is internally represented as "customprefix.ok|general.ok" resource string key if the property is set to the "customprefix" value.
ResourcePrefix = "customprefix";
var localizedString = GetString("general.ok");
See Also