473,383 Members | 1,846 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,383 software developers and data experts.

how to nest CheckBoxList in DataSet ( asp.net vb )

yellow everybody,

This what i did is below, however i'm getting error when Checkboxlist shows
relation' columns.
<asp:DataList id="pytania_list" runat="server" Width="100%" DataSource='<%#
Container.DataItem.row.GetChildRows("relation1_nam e") %>'>
<ItemStyle
font-size="1pt" font-names="Verdana"></ItemStyle>
<ItemTemplate>
<table
width="100%" >
<tbody>
<tr>
<td>

<b><%# Container.DataItem("col1_name")%>.</b><%#
Container.DataItem("col2_name")%></td>
</tr>
<tr>
<td

<asp:CheckBoxList id="CheckBoxList1" runat="server"
DataTextField="CH_col1_name" DataSource='<%#
Container.DataItem.GetChildRows("relation2_name") %>'></asp:CheckBoxList>

</td>

</td>
</tr>
</tbody>
</table>
</ItemTemplate>

</asp:DataList>

An error that i get is :DataBinder.Eval: 'System.Data.DataRow' does not
contain a property with the name CH_col1_name.

Anybody has an idea to correct my script ??
Thanks in advance
krzysiek
Nov 18 '05 #1
0 1155

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: me | last post by:
Hello, I have a novice question: How do you populate a checkboxlist with XML data? TIA
1
by: Netmonster | last post by:
I can't seem to figure out why I am unable to populate a checkboxlist inside a Datagrid. I have a DataSet with a DataTable called ServerInfo. The Datatable has two columns. MapName and...
0
by: Agi Chen | last post by:
Hello, theres, I'm newbie in asp.net. I have problem in CheckBoxList binding to database. Considering my case in a member system, if I have 2 tables one for interest, one for memberInterest the...
3
by: I am Sam | last post by:
I keep getting the following error message when I try to iterate through a CheckBoxList control: Object reference not set to an instance of an object. Description: An unhandled exception...
5
by: Patrick.O.Ige | last post by:
I'm binding a CheckBoxlist below in the ItemDataBound(the CheckBoxList is in a Datalist) By doing "li.Selected = True" i can see all the checkBoxes are selected. But what i want is to be able...
4
by: Patrick.O.Ige | last post by:
I have a CheckBoxList in a DataList and i'm trying to get item Selected after doing a postBack. I have set my CheckBoxlist AutoPostBack="True" Any ideas what 'm doing wrong? It seems not to...
2
by: EnjoyLife | last post by:
I am new to ASP.NET and am trying to learn it the best that I can. I am trying to add some code in the If IntRowIndex > -1 statement to mark an item SELECTED before adding it to the CheckBoxList. ...
6
by: dbuchanan | last post by:
There are three parts to this 1.) How do I cascade menus? 2.) And, how do I cascade menus with a multi-select CheckBoxList?
3
by: dbuchanan | last post by:
How, at rundime, do I capture the fact that the parametrized query that fills a CheckBoxList results in an empty set. When the dataset is empty the CheckBoxList does not appear. I would like to...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.