473,378 Members | 1,209 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,378 software developers and data experts.

Dropdown list in a repeater?

Is it possible to nest a drop down list in a repeater? (also the repeater has a nested repeater)

The code i am using looks like.... i get an error saying that
Exception Details: System.Web.HttpException: DataBinder.Eval: 'System.Data.DataRow' does not contain a property with the name topic.

If i remove the dropdown list code it works fine...

Any ideas?

<asp:Repeater ID="SectionRepeater" Runat="server">
<ItemTemplate>
<div>
<p class="section_text"><%# DataBinder.Eval(Container,"DataItem."+ JR.Core.Data.QuestionData.FLD_SECTION_NAME) %>
<asp:DropDownList ID="SectionDropDown" DataSource='<%# ((DataRowView)Container.DataItem).Row.GetChildRows ("myquestions") %>'
DataValueField="ques_id" DataTextField="topic" Runat=server></asp:DropDownList>
</p>
<!-- start child repeater -->
<asp:repeater id="QuestionsForSections" datasource='<%# ((DataRowView)Container.DataItem).Row.GetChildRows ("myquestions") %>' runat="server">
<itemtemplate>
<span class="question_text">
<%# DataBinder.Eval(Container.DataItem, "[\"topic\"]")%>
</span><br>
<span class="body_text">
<%# DataBinder.Eval(Container.DataItem, "[\"body\"]")%>
</span>
<br>
<br>
</itemtemplate>
</asp:repeater>
<!-- end child repeater -->
</div>
</ItemTemplate>
</asp:Repeater>
Nov 18 '05 #1
0 1129

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

Similar topics

1
by: Joseph Barron | last post by:
Here is a SIMPLE problem that I'm trying to solve. It works in Netscape 6.2, but IE6 gives ""No such interface supported." Below are page1.htm and page2.htm . In page1.htm, there are two...
1
by: Jax | last post by:
I have an arraylist of objects. This arraylist is bound to a repeater. That repeater then creates a set of controls like so <asp:repeater id="garmentRepeater" runat="server"...
0
by: Dunc | last post by:
I've bound a series of drop-down lists in a repeater control to a data table. I've late bound them to datatable, and am using the _ItemDataBound event to populate each control accordingly, and...
0
by: Jeff | last post by:
After I bind the repeater control in the form_load event, it builds multiple lines based on the number of rows in the dataset. In the repeater control, I have a textbox and a dropdown list box. ...
1
by: Don Parker | last post by:
I want to have 2 dropdowns - one containing categories of items such as Furniture, Applicances etc. The other dropdown is a list of subcategories that match the first drop down. So if the user...
1
by: mwhitlatch | last post by:
I have a repeater where the data is filtered by a param in the querystring. In the repeater I have a dropdown that needs to only show the data based upon the filter I set up in the datasource. I have...
11
by: J055 | last post by:
Hi I have a dropdown control which is constructed in another dropdown control SelectedIndexChanged event protected void ddlParamType_SelectedIndexChanged(object sender, EventArgs e) { //...
0
by: emajka21 | last post by:
I am using Visual Studios 2005 (asp2.0/C#) connecting to an access 2000 database. I have created a repeater and the items in the repeater need to be sorted by different ways. I have created a...
1
by: =?Utf-8?B?U3Rvcm1icmluZ2Vy?= | last post by:
I have an UpdatePanel with a dropdown list that I can't seem to get to update. It has a hidden button which I click from javascript added to the page when another update panel is updated. Triggers...
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
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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
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: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

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.