ControlsHelperResolveMacros Method (String, DataRowView, Boolean) |
Replaces macros in text with appropriate value of the datarow and returns the result.
Namespace: CMS.ExtendedControlsAssembly: CMS.ExtendedControls (in CMS.ExtendedControls.dll) Version: 8.2.23
Syntax 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:
StringRemarks It also escapes apostrophes ("'") to "\'" so that they do not break JavaScript.
See Also