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
Post a Comment