摘要:
这种模式是目前最受欢迎,也是普遍采用的模式。主要解决的问题是响应鼠标的over 和 out事件,来控制div参看代码:html xmlns="http://www.w3.org/1999/xhtml"headtitle/titlemeta http-equiv="Content-Type" content="text/html; charset=gb2312" /style type="text/css"ul {margin: 0;padding: 0;list-style: none;width: 130px;border-bottom: 1px solid #ccc 阅读全文
摘要:
今天要给repeater做上一个checkbox,然后能做到圈选反选,本来很简单的事,但是我发现了findcontrol方法的一个好的优点。前台绑定方法如下:asp:Repeater ID="Repeater1" runat="server" ItemTemplateasp:CheckBox ID="ch" runat="server" //ItemTemplate /asp:Repeater后台代码如下:foreach (Control c in this.Repeater1.Controls) { CheckBox check = (CheckBox)c.FindCo 阅读全文