如何在Checkboxlist项之间包含控件 [英] How Do I include controls in between Checkboxlist Items

查看:113
本文介绍了如何在Checkboxlist项之间包含控件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以在checkboxlist项目之间包含控件?





我必须获取文本和桌子上的Chekboxlist的值。



基于所选项目我必须通过复选框项目显示控件侧

解决方案

说实话,你可能根本不想要一个CheckBoxList:它旨在允许多个选择,我在哪里读你的评论:

我有五种支付模式,基于我需要显示控件的支付模式选择

听起来你只想要为相关模式显示控件(和通常在两种模式下同时工作通常是错误的。)

所以你真正想要的是一个列表,或者可能是单选按钮,但我很想使用标签页 - 有一个在这里: ASP.NET A的选项卡控件应用 [ ^ 或更好的解决方案: http://www.asp.net/ajaxlibrary/ajaxcontroltoolkitsamplesite /tabs/tabs.aspx [ ^

is it possible to include controls in between checkboxlist items ?


I have to Get Text And Values Of a Chekboxlist From A table .

Based on Selected items i have to display the controls side by a checkbox item

解决方案

To be honest, you probably don;t want a CheckBoxList at all: it is intended to allow multiple selections, where the way I read your comment:
"I'm having Five payment Modes based on the selection of payment modes i need to display the controls"
It sounds to me that you only want the controls displayed for the relevant mode (and working in two modes at the same time would normally be wrong).
So what you really want is a list, or possibly radio buttons, but I'd be tempted to use a tab page - there is one here : Tab control for ASP.NET Applications[^] or a better solution here: http://www.asp.net/ajaxlibrary/ajaxcontroltoolkitsamplesite/tabs/tabs.aspx[^]


这篇关于如何在Checkboxlist项之间包含控件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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