Click or drag to resize
ControlsHelperResolveMacros Method (String, DataRowView, Boolean)

Note: This API is now obsolete.

Replaces macros in text with appropriate value of the datarow and returns the result.

Namespace: CMS.Base.Web.UI
Assembly: CMS.Base.Web.UI (in CMS.Base.Web.UI.dll) Version: 11.0.0
Syntax
C#
[ObsoleteAttribute("Use ResolveMacros(string, DataRow, bool) method instead. Will be removed in next major release.")]
public static string ResolveMacros(
	string sourceText,
	DataRowView dr,
	bool encode
)

Parameters

sourceText
Type: SystemString
Source text to be processed
dr
Type: System.DataDataRowView
DataRowView containing data that will be used for replacements
encode
Type: SystemBoolean
Indicates whether macro should be encoded

Return Value

Type: String
Remarks
It also escapes apostrophes ("'") to "\'" so that they do not break JavaScript.
See Also