What is the difference between the two methods of setting the css class on web control?
How they are synchronized? If I add class to CssClass and Attributes["class"], how it will be rendered?
What is the difference between the two methods of setting the css class on
Share
They both will be rendered the same.
As a
class="myClass"in html.The property
CssClass, if set, will take precedence and overwrite theAttributes["class"].