get value from specific tag as created c#

388 Views Asked by At

How to get the value inside de control aspx?

sample.

    <asp:TextBox ID="TextBox1" tag="value_test2"
        runat="server"></asp:TextBox>

I would like to get the value from tag="...".

1

There are 1 best solutions below

0
On
var value = TextBox1.Attributes["tag"].Value