Click or drag to resize

EAPCtrlUtils.ApplyClassAndStyle Method (WebControl, 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(
	WebControl ctrl,
	string cssClass,
	string style
)

Parameters

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