Hi, there doesn't appear to be a CssClass attribute of HtmlGenericControl, even though there is a Style one. Is it possible to programmatically change the CSS class of HtmlGenericControl? If not, why not?!
Hi, thanks for this, but I think that was one of the things I tried. I think it had a problem because a class attribute already existed for that element (since I'm trying to change it rather than simply add it). However, trying myControl.Attributes.Remove("myclass") first didn't make any difference. Still, I'll try this again in case I was doing something wrong the first time...
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.