I have defined two classes in my embedded CSS on the Default.aspx page. If necessary, I can move the code to an external CSS file.
Is it possible to write C# code that allows me to select between these two styles for my table after clicking a button? I have limited experience with ASP and C#.
The classes are as follows:
.tftable
{
background-color: Blue;
font-size: 12px;
color: #333333;
margin: 0px;
padding: 0px;
width: 100%;
border-width: 1px;
border-color: #729ea5;
border-collapse: collapse;
}
.CSSTable
{
background-color: Gray;
margin: 0px;
padding: 0px;
width: 100%; /*Fits the <div>*/
box-shadow: 10px 10px 5px #888888;
}
So, by clicking one button, I want my table to use the "tftable" class, and by clicking another button, I want it to use the "CSS" class.
Best regards