EAPCtrlUtilsApplyClassAndStyle 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
)
Public Shared Sub ApplyClassAndStyle (
ctrl As WebControl,
cssClass As String,
style As String
)
Parameters
- ctrl
- Type: System.Web.UI.WebControlsWebControl
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