AdvantageCMS.Core.Common.BaseClasses Namespace
Build With Advantage

AdvantageCommonBasePage..::..GetRemapHandlerId Method

Extracts the value of the specified attribute (typically id) from a single HTML element string using a regex match.

Namespace:  AdvantageCMS.Core.Common.BaseClasses
Assembly:  AdvantageCMS.Core (in AdvantageCMS.Core.dll)

Syntax


protected string GetRemapHandlerId(
	string element,
	string attributeName
)

Parameters

element
Type: String
The HTML element text to inspect (for example, <button id="btn1" onclick="...">).
attributeName
Type: String
The attribute name whose value should be returned (without quotes).

Return Value

The attribute's value, or String if the attribute is not present.

See Also


AdvantageCommonBasePage