You can yes. I just used a slightly different approach. Instead of declaring a class I used a specific ID. I was using labels for error messages and set the ID to Error for the label in my CSS I then gave the following.
#Error
{
font-size: 12pt;
color: red;
background-color: aqua;
}
Yup no problems there. I did this all programmatically.
dim myError as new Label
myError.text = "msg"
myError.ID = "Error" panelmsgs is a panel already on the form.
PanelMsgs.Controls.Add(myError)
MyError = Nothing
HTML doesn't care if there are multiple ID's VS might I am not sure.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.