Click here to Skip to main content
15,886,362 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi
i have a dropdownlist that i add it to page dynamically
something like this :
dim drp as new dropdown list
...
i mean there is nothing in page.aspx
now i want to create a checkboxdropdownlist totally in code behind
i read related posts but none of them was totally in code behind i mean all of them add a dropdown in page.aspx but i have nothing in page.aspx . all must be done in code behind

thanks in advance
Posted
Comments
CHill60 26-May-15 8:17am    
Dropdownlist and checkbox are GUI components (i.e. designed to be seen by a user). What do you mean it must be totally in code behind - there is no way of seeing visual components on the server
fa_itb 26-May-15 12:27pm    
i mean i don't add <asp:dropdown>... in page.aspx
i declare it in code behind : dim drp as new dropdownlist and i bind a datatable to it
and now i don't know how can add a checkbox for each item in my dropdownlist

declare a combobox in code and then add it to the window's children items, so that the control will be added to the window.
 
Share this answer
 
Comments
fa_itb 26-May-15 12:30pm    
what do you mean? would you please write some code
 
Share this answer
 

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