Adding CSS styles troubles.

Soron358

New member
Joined
Dec 11, 2011
Messages
2
Programming Experience
Beginner
Hello

I have a label that depending on the amount due, shows 2 different messages. I set up 2 CSS styles (one for each) in the source code.
I'm having trouble when it comes to calling the CSS styles. (style names are .orderstatushigh & .orderstatusveryhigh)
Select Case AmountDueDecimal
Case Is < 80
lblOrderStatus.Text = ""
Case 80 To 250
lblOrderStatus.Text = "High Order"
Case Is >= 250
lblOrderStatus.Text = "Very High Order"

How do I go about applying the style when the text is shown?

Thanks in advance.
 
Have you tried setting the .cssClass for the label?
 
That's where I'm confused. Does the code go something like.
lblOrderStatus.cssClass.???? (format, style)

I'm not sure how to exactly call it.
 
Back
Top