Hi i am using a checked list box control.I have to display Name to the user and store the id of the selected item to the database(like display and value member of combobox).
Is there any way to do this in checked list box. I am not finding display and value member property for the control.
Thanks in advance.
ImranPosted Aug 26, 2008, 12:58 AM
http://raja-blogistani.blogspot.com/
See the article Checked List Box
Simi JPosted May 13, 2008, 8:23 AM
Thanks for the reply.
I am using windows forms control. and not asp control. How can we write this code there?
Could you please tell me how we could bind it to data source?
Blocked AccountPosted May 13, 2008, 6:37 AM
Hi,
U can set this property by using this
<asp:CheckBoxList ID="CheckBoxList1" runat="server"> <asp:ListItem Value="" Text="">asp:ListItem> asp:CheckBoxList>and if u want to bind this through the data source. then u can do this by defining the datatextfield and datavaluefield.
Happy Coding!!