Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何获取 de control aspx 中的值?
样本。
<asp:TextBox ID="TextBox1" tag="value_test2" runat="server"></asp:TextBox>
我想从 tag="..." 中获取值。
var value = TextBox1.Attributes["tag"].Value