Posted on: 3/15/2015 10:14:28 AM | Views : 601

Hi all,
I have code in asp.net runtime :
CheckBox cb = new CheckBox(); cb.ID = "1"; cb.Text = "Test"; form1.Controls.Add(cb); It will be generated in html as :
<input id="1" type="checkbox" name="1" /><label for="1">Test</label> So, how can i add attribute into input tag such as :
<input key="value" weight="kg" id="1" type="checkbox" name="1" /><label for="1">Test</label> or override name value ! Thank you very much !

Go to the complete details ...