jjzjj

PaymentMethodDropDownList

全部标签

asp.net - 将 "onclick"属性添加到 asp.net 下拉列表项

我可以像这样向RadioButtonList项目中的项目添加属性:PaymentMethodDropDownList.Items[0].Attributes.Add("onclick","javascript:showNoMethods();");PaymentMethodDropDownList.Items[1].Attributes.Add("onclick","javascript:showCreditCardMethod();");PaymentMethodDropDownList.Items[2].Attributes.Add("onclick","javascript:sh