How to apply CSS style in the Label control from code-behind in ASP.NET in VB.NET
You can apply CSS style from code behind by accessing the properties of the control with the help of its Id. Most of the CSS styles can be applied using the Font property and its sub properties of the Label control. However you can use ForeColor and BackColor directly from the Label control.
TestApplyCSS.aspx
<%@ Page …