Adf.Web.Styling.SmartPanelErrorStyler.StyleControl C# (CSharp) Method

StyleControl() private static method

private static StyleControl ( WebControl control ) : void
control System.Web.UI.WebControls.WebControl
return void
        private static void StyleControl(WebControl control)
        {
            if (control == null || control is TableCell || control is LinkButton) return;

            if (control is Label) control.CssClass.Toggle("ErrorLabel", "{0} {1}");
            else control.CssClass.Toggle("ErrorItem", "{0} {1}");
        }