ASP.NET有一个复选框列表,在4×5网格中有我很好的复选框
发布时间:2020-12-16 07:21:29 所属栏目:asp.Net 来源:网络整理
导读:我有一个复选框列表,可以在列表中显示它们 ABCD 或水平的 A B C D 我想把它们安排在这样一个漂亮的网格中 A B C DE F G HI J K L 我该怎么做? 解决方法 您需要设置CheckBoxList的 RepeatDirection和 RepeatColumns属性. asp:CheckBoxList ID="myCheckBoxLis
我有一个复选框列表,可以在列表中显示它们
A B C D 或水平的 A B C D 我想把它们安排在这样一个漂亮的网格中 A B C D E F G H I J K L 我该怎么做? 解决方法
您需要设置CheckBoxList的
RepeatDirection和
RepeatColumns属性.
<asp:CheckBoxList ID="myCheckBoxList" runat="server" RepeatColumns="4" RepeatDirection="Horizontal"> <asp:ListItem>A</asp:ListItem> <asp:ListItem>B</asp:ListItem> <asp:ListItem>C</asp:ListItem> <asp:ListItem>D</asp:ListItem> <asp:ListItem>E</asp:ListItem> <asp:ListItem>F</asp:ListItem> <asp:ListItem>G</asp:ListItem> <asp:ListItem>H</asp:ListItem> <asp:ListItem>I</asp:ListItem> <asp:ListItem>J</asp:ListItem> <asp:ListItem>K</asp:ListItem> <asp:ListItem>L</asp:ListItem> <asp:ListItem>M</asp:ListItem> <asp:ListItem>N</asp:ListItem> <asp:ListItem>O</asp:ListItem> <asp:ListItem>P</asp:ListItem> <asp:ListItem>Q</asp:ListItem> <asp:ListItem>R</asp:ListItem> <asp:ListItem>S</asp:ListItem> <asp:ListItem>T</asp:ListItem> </asp:CheckBoxList> 这将呈现4×5网格的复选框. A B C D E F G H I J K L M N O P Q R S T (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |
相关内容
- asp.net-mvc – WebService还是一个简单的MVC控制器?
- asp.net-mvc – 如何处理MVC中的页面流(特别是asp.net)
- 使用Asp.Net Core时,如何查看为Razor Page生成的代码?
- asp.net-mvc – 客户端验证未显示消息
- asp.net – 从DropdownList SelectedItem获取属性
- asp.net-mvc – ASP.NET MVC 4重定向回索引视图
- asp.net – 如何在转发器中每行显示x个项目?
- asp.net-mvc – 我的模型应该在哪里生活? Web层或数据层?
- ASP.NET Kendo UI上传
- asp.net-mvc-3 – 如何在Windows Azure中为文件夹授予RW权限
推荐文章
站长推荐
- VS 2015预览缺少“ASP.NET 5 Web应用程序”项目类
- asp.net – 如何将所有httpErrors重定向到自定义
- 强制ASP.NET应用程序从bin而不是GAC加载程序集
- asp.net-mvc – ASP MVC Preview 5和IIS 6 Windo
- 为ASP.NET网站创建DAL
- asp.net-mvc-3 – 无法从Orchard模块中的项目文件
- ASP.Net相当于PHP的file_get_contents(‘php://
- asp.net-mvc – 尝试确定在干净安装的窗口上托管
- asp.net-mvc – MVC ASP.NET或Razor
- asp.net-mvc-3 – Razor reseverd words
热点阅读