Click here to Skip to main content
11,934,809 members (41,735 online)
Rate this:
Please Sign up or sign in to vote.
See more: VB ASP.NET checkbox VB.NET , +
hope u r doing well.

I have a listview with two sqldatasource outside. Inside the listview there is a label and a checkboxlist. The label is to display the category titles. I wanna databind the each checkboxlist to its coressponding data. I don't know how to do. Please explain me with abit of code as i am a beginner developer. Thanks so much for your help. I googled alot and found people with same problems and others solutions to their problems. But i don't know how to re-use those solution in my program. Frown | :(

That's the code i have. I don't have anything in codebehind. With this code, it shows the data with different categories but all the checkboxlists show same thing, which is right for the first checkboxlist. Thanks so much again.

<asp:ListView ID="ListView1" runat="server" DataSourceID="ListViewSqlDataSource" >
           <asp:Label ID="CategoryNameLabel" runat="server"><%# Eval("CategoryName") %>
Posted 18-Jan-12 2:20am
Edited 18-Jan-12 2:21am
Jephunneh Malazarte 19-Jan-12 1:39am
see answer to your post in forum.

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

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web03 | 2.8.151126.1 | Last Updated 18 Jan 2012
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100