Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > how to nest CheckBoxList in DataSet ( asp.net vb )

Reply
Thread Tools

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

 
 
krzysiek
Guest
Posts: n/a
 
      10-18-2004
yellow everybody,

This what i did is below, however i'm getting error when Checkboxlist shows
relation' columns.


<aspataList 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>

</aspataList>

An error that i get is ataBinder.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


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Checkboxlist inside Repeater - doesn't fire click event for Checkboxlist JD ASP .Net 5 08-08-2007 11:28 AM
Nest Web Projects =?Utf-8?B?UmFlZCBTYXdhbGhh?= ASP .Net 1 07-19-2005 02:45 PM
How to get Selected item in a Databinded CheckBoxList when CheckBoxlist is in a DataList? Patrick.O.Ige ASP .Net 5 06-19-2005 06:11 AM
Binding CheckBoxList to DataSet Column Dave Hall ASP .Net Web Controls 2 08-09-2004 05:50 PM
Nest controls in a MS Treeview Web Control Chad ASP .Net 1 12-18-2003 05:00 PM



Advertisments