想要在复选框点击事件上添加转发器? [英] want to add repeater on checkbox click event?

查看:46
本文介绍了想要在复选框点击事件上添加转发器?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

想要在复选框点击事件上添加转发器???

want to add repeater on checkbox click event???

推荐答案

尝试

在.NET中继器中使用复选框的正确方法! [ ^ ]

http: //www.mikesdotnetting.com/Article/66/Referencing-CheckBoxes-in-GridView-Repeater-and璜List-controls [ ^ ]

http://www.thejackol.com/2007/11/02/aspnet-checkboxes-in-所述中继器控制/ [ ^ ]
Try
The RIGHT Way to Use Checkboxes in a .NET Repeater![^]
http://www.mikesdotnetting.com/Article/66/Referencing-CheckBoxes-in-GridView-Repeater-and-DataList-controls[^]
http://www.thejackol.com/2007/11/02/aspnet-checkboxes-in-the-repeater-control/[^]


设计代码:



Design Code:

<asp:CheckBoxList ID="AccCheckBoxList" runat="server" RepeatColumns="8" RepeatLayout="Table" BorderColor="DarkGray" BorderStyle="Dotted" BorderWidth="4px" >
</asp:CheckBoxList>





代码背后:



Code Behind:

string commaString = "3,4,5,6,7,8";
        string[] words = commaString.Split(',');
        foreach (string word in words)
        {
            SelectCheckBoxList(word);
        }


这篇关于想要在复选框点击事件上添加转发器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆