This video explains how to apply CSS from code behind based on condition or some calculation or some formula.
www.youtube.com