摘要: CheckBox 控件新增加了两个属性:InputAttributes 和 LabelAttributes 。利用这两个属性,可以很方便地为label和input标签添加自定义属性,而使用 Attributes 则是不能完成这2个任务的。举一个例子,页面中定义一个asp:CheckBox:<asp:CheckBox ID="cbTest" Text="CheckBox" runat="server" />在后台代码中使用Attributes属性为其添加onclick事件:cbTest.Attributes.Add(&quo 阅读全文
posted @ 2011-12-12 10:24 minglz 阅读(1094) 评论(1) 推荐(1) 编辑