How to add custom attributes to ASP.NET controls -


i've got asp.net control checkbox:

<asp:checkbox id="mychck" runat="server" value="mycustomvalue" /> 

is possible add custom value attribute code-behind , respectively value value

something (psuedocode):

myckck.value = "blq blq"; string chckvalue = mychck.value; 

how can this?

it's possible:

myckck.attributes.add("value", "blq blq");  string chckvalue = mychck.attributes["value"].tostring(); 

Comments

Popular posts from this blog

curl - PHP fsockopen help required -

HTTP/1.0 407 Proxy Authentication Required PHP -

c# - Resource not found error -