在后台得到前台元素,给元素改变属性值或添加属性

View Code
1 如要在后台改变<tr>标签的属性style
2 <tr style ="display:none" runat ="server" id="Tr">
3 <td>
4 <asp:Label ID="Name3" runat="server" Text="Label"></asp:Label></td>
5 <td>
6 </tr>
7
8 后台代码:
9 this.Tr.Attributes["style"] = "";//将style属性改为空
原文地址:https://www.cnblogs.com/pfcan66/p/2378282.html