Click here to Skip to main content
15,905,071 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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
Posted
Updated 11-Jan-14 2:42am
v2
Comments
Sampath Lokuge 11-Jan-14 0:34am    
Asp.net or windows ?
Member 10517120 11-Jan-14 7:25am    
ASp.Net
What is the issue? Please post the code.
Member 10517120 11-Jan-14 7:28am    
code not yet written..

I'm having Five payment Modes based on the selection of payment modes i need to display the controls
So, try some code and if you face problem, then come back and add another question explaining the issue.

1 solution

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[^]
 
Share this answer
 
Comments
Member 10517120 15-Jan-14 4:27am    
not single selection . I need Multiple Selection.

user can pay half amount through cash rest by card..too
OriginalGriff 15-Jan-14 4:38am    
Then use individual check boxes instead.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900