checkbox & checkboxlist :
checkbox 一般有一个checkedchanged的事件,但一般不用对这个事件编码,
因为当您选中或者取消的时候系统自动触发这个事件,当然您必须设autopostback属性为true.
else:当您想要在鼠标移动到checkbox上面时出现颜色不同于在没移动过去时的颜色,那么您可以设置它的两个属性,分别是inputAattributes ,labelAattributes 。(在这里解释下为什么有这两个属性,因为一个checkbox是右一个input标签和一个label标签组成的)他们分别作用于input和label标签,通过这两个标签可以向label and input 添加html元素。such as 鼠标移动的样式!
another one ---checkboxlist:
它包含多个checkbox,您可以测试设置AUTOPOSTBACK为TRUE,这样就 会自动触发selectindexchanged事件,提交给server。但一般不是这样的,一般只要取出选中的项的值,那么我们就要遍历这个listitem(因为checkboxlist的每一项就是一个listitem)。for example: foreach遍历整个checkboxlist。这样就能取出checkboxlist中被选中的项的值。
listbox于checkboxlist基本一样,如果要编程实现也要采用listitem的items集合操作。
分享到:
相关推荐
RTE (Rich Text Editor) ASP.NET Control 基于 ASP.NET,目前只支持 IE 和 Firefox。
RTE (Rich Text Editor) ASP.NET Control 基于 ASP.NET,目前只支持 IE 和 Firefox。
本卷从最易于理解和使用的那部分入手,介绍ASP.NET AJAX框架中能够与传统ASP.NET无缝对接的服务器端部分,包括服务器端ASP.NET AJAX Extensions与ASP.NET AJAX Control Toolkit。这部分内容不需要读者有任何的客户端...
This Setup installs the latest Trial version of Janus Web ASP.NET Server Controls Suite v3.0.42 and Patched
this book never publish to market, only E-book version. I already read it and want to share with coding guys. :)
Welcome to Professional ASP.NET 2.0 Server Control and Component Development. The ASP.NET 2.0 Framework consists of two groups of components. The first group contains server controls, that is, those ...
Welcome to Professional ASP.NET 2.0 Server Control and Component Development. The ASP.NET 2.0 Framework consists of two groups of components. The first group contains server controls, that is, those ...
Welcome to Professional ASP.NET 2.0 Server Control and Component Development. The ASP.NET 2.0 Framework consists of two groups of components. The first group contains server controls, that is, those ...
PopupControl 是一个可以在 ASP.Net 页面上“弹出”一个界面部分的 ASP.Net AJAX 控件。 这个控件多半会和 ASP.Net AJAX 控件 UpdatePanel 一起使用,因为它内部一般将执行复杂的服务器端事件。 在这个“弹出”的...
Included in this package: * AjaxControlToolkit - A set of sample ASP.NET AJAX ...* Using control extenders with your ASP.NET web site * Creating new control extenders * Writing your own automated tests
ASP.NET AJAX Control Toolkit 控件说明; ASP.NET AJAX Control Toolkit 34个服务器端扩展控件的说明
本卷侧重分析ASP.NET AJAX框架的客户端部分,包括对JavaScript 在面向对象、DOM 操作方面的扩展、ASP.NET AJAX 客户端组件、ASP.NET AJAX XML脚本等,还介绍了ASP.NET AJAX 框架为开发者在客户端用JavaScript 与...
ASP.net Ajax Control Toolkit控件应用: 包括:利用AutoCompleteExtender控件实现自动完成的功能;利用NoBot控件自动拒绝垃圾发布程序;利用ReorderList控件实现拖拽排序;利用Rating控件实现评分功能;利用...
asp.net mvc admin user control release dates
ASP.NET AJAX
CKEditorforASP.NETv3.5.3源码CKEditor简介CKEditor是一款功能强大的开源在线文本编辑器。它所见即所得的特点,使你在编辑时所看到的内容和格式,能够与发布后看到的效果完全一致。利用它,我们可以在Web上实现类似...
RTE (Rich Text Editor) ASP.NET Control 基于 ASP.NET,目前只支持 IE 和 Firefox。
Asp.net Ajax ControlToolkit 自动完成功能和自动拒绝垃圾发布程序和拖曳排序和评分功能的例子
本书共分为15章,从初识ASP.NET AJAX开始,首先介绍了ASP.NET AJAX基础知识和结构,然后介绍了ASP.NET AJAX Control Toolkit中的全部控件,如AutoComplete、PasswordStrength、CollapsiblePanel、Tabs、...
其服务器端编程模型相对于客户端编程模型较为简单,而且容易与现有的ASP.NET程序相结合,通常实现复杂的功能只需要在页面中拖几个控件,而不必了解深层次的工作原理,除此之外服务器端编程的ASP.NET AJAX Control ...