如何在 C# 后面的代码中设置样式属性?
谢谢 尼尔
最佳答案
基本上是这样的
Control.Style.Add("background-color", "red");
或者像这样的任何其他属性:
Control.Attributes.Add("style", "color: red;");
关于asp.net - 如何设置用户控件样式属性?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4827872/