Click or drag to resize

EAPCtrlUtilsHasCssClass Method

Determines whether or not the specified control has the specified CssClass. Note that if cssClass is null/empty then true is always returned.

Namespace:  NetQuarry
Assembly:  EAP.Core (in EAP.Core.dll) Version: 2.0.0.0 (4.6.8.0)
Syntax
public static bool HasCssClass(
	Control ctrl,
	string cssClass
)

Parameters

ctrl
Type: System.Web.UIControl
The control in question.
cssClass
Type: SystemString
The CssClass for which to test.

Return Value

Type: Boolean
True if the control has the specified class (or the class is null/empty), else false.
See Also