Click or drag to resize

EAPCtrlUtilsApplyClassAndStyle Method (HtmlControl, String, String)

Set the CssClass and Style pairs on the control. Each is set only if that string is non-null/non-empty.

Namespace:  NetQuarry
Assembly:  EAP.Core (in EAP.Core.dll) Version: 2.0.0.0 (4.6.8.0)
Syntax
public static void ApplyClassAndStyle(
	HtmlControl ctrl,
	string cssClass,
	string style
)

Parameters

ctrl
Type: System.Web.UI.HtmlControlsHtmlControl
The control in question.
cssClass
Type: SystemString
The CSS class to set, if non-null and non-empty.
style
Type: SystemString
The style name:value pairs to set, if non-null and non-empty.
See Also