Click or drag to resize
AbstractUserControlGetString Method
Returns the localized string of the control's hierarchically highest parent that has the ResourcePrefix property and its translation defined.

Namespace: CMS.Base.Web.UI
Assembly: CMS.Base.Web.UI (in CMS.Base.Web.UI.dll) Version: 10.0.0
Syntax
C#
public virtual string GetString(
	string stringName,
	string culture = null
)

Parameters

stringName
Type: SystemString
String to localize.
culture (Optional)
Type: SystemString
Culture to be used for localization.

Return Value

Type: String
Remarks

If no parent but the control has the property defined, returns the control's localized string.

If none of them have the ResourcePrefix property defined, returns the default resource string translation.

See Also