13 June 2008

Asp.Net - Add Attributes to RadioButtons (Finally)

This was shockingly simple in VS2008 targeting .Net 3.5, compared to how shockingly complicated it used to be.

Dim oRad As New RadioButton
oRad.InputAttributes.Add("myattribute", "myattributevalue")

Does it get any easier than that???

No comments: