After clicking a button, I need to select between two classes (.Class1 and .Class2) declared in the css file StyleSheet1.css for my table tag. How can I achieve this?
<link href="Styles/StyleSheet1.css" rel="stylesheet" type="text/css" />
<table class="Class1">
<tr>
<td>Hello World!</td>
</tr>
</table>
CSS File:
.Class1
{
background-color: Blue;
}
.Class2
{
background-color: Red;
}
If possible, I would like to use C# to change classes dynamically, but if not, maybe JavaScript could work?
I'm fairly new to ASP and C#, with some experience in HTML.
Best Regards