My codes is like
<th runat="server" id="thTodayToTenTotal" class="redRow">
<th runat="server" id="thTodayToTenTotal" class="redRow">
I remove the attribute class="redRow" like that from CodeBehind
thTodayToTenTotal.Attributes.Remove("class");
It is OK.
But the class "redRow" can have many in my page. How to remove this class name from entire page one time. Then I want to add this class to one html element.I means that I have
<th runat="server" id="wantToAddClass">
I add the class from CodeBehind like that
wantToAddClass.Attributes.Add("class", "redRow");