Access custom attribute and value in c# code behind
<p>I want to access custom attribute in the code behind, how can I?</p>

<p>e.g. my server control</p>

<pre><code>&lt;asp:HyperLink ID="id_1" runat="server" Target="_blank" NavigateUrl="xyz" Style="color:red"&gt;&lt;/HyperLink&gt;
</code></pre>

<p>'Style' is not an Attribute of HyperLink as a result it is not rendered in the HTML, so I want to access the Style value in c# code behind and once I access it i can dom something like below which works.</p>

<pre><code>id_1.Attributes.Add("Style","color:red");
</code></pre>

<p>Any help is appreciated. If you guys have any other suggestion, that is appreciated as well. </p>