473,804 Members | 2,946 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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.Http Exception: DataBinder.Eval : 'System.Data.Da taRow' does not contain a property with the name topic.

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

Any ideas?

<asp:Repeater ID="SectionRepe ater" Runat="server">
<ItemTemplate >
<div>
<p class="section_ text"><%# DataBinder.Eval (Container,"Dat aItem."+ JR.Core.Data.Qu estionData.FLD_ SECTION_NAME) %>
<asp:DropDownLi st ID="SectionDrop Down" DataSource='<%# ((DataRowView)C ontainer.DataIt em).Row.GetChil dRows("myquesti ons") %>'
DataValueField= "ques_id" DataTextField=" topic" Runat=server></asp:DropDownLis t>
</p>
<!-- start child repeater -->
<asp:repeater id="QuestionsFo rSections" datasource='<%# ((DataRowView)C ontainer.DataIt em).Row.GetChil dRows("myquesti ons") %>' runat="server">
<itemtemplate >
<span class="question _text">
<%# DataBinder.Eval (Container.Data Item, "[\"topic\"]")%>
</span><br>
<span class="body_tex t">
<%# DataBinder.Eval (Container.Data Item, "[\"body\"]")%>
</span>
<br>
<br>
</itemtemplate>
</asp:repeater>
<!-- end child repeater -->
</div>
</ItemTemplate>
</asp:Repeater>
Nov 18 '05 #1
0 1178

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

Similar topics

1
8295
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 dropdown lists. If you change the selection of the left one (e.g. choose parentoption2), it should open up page2.htm in a popup window.
1
4020
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" OnItemCommand="Repeater_ButtonClick"><HeaderTemplate><asp:Label id="Label1" style="Z-INDEX: 101; LEFT: 250px; POSITION: absolute; TOP: 80px" runat="server Width="200px" Height="50px" Font-Names="Impact" Font-Size="Large">Garments on...
0
2059
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 change the name to reflect the ID field from the database. This all works peachey, but the dynamic changing-of-name doesn't seem to actually have done anything when I view the HTML source, so I'm apparently loosing my unique ID for a start. Then...
0
1646
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. I have tied the "SelectedIndexChanged" to it. At runtime - after I change the dropdown box selection, I'm only able to view the values of the controls within that one repeater instance. After the dropdown selection is changed, I need to...
1
1221
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 chooses Furniture - the 2nd dropdown will show Bed, Sofa etc - or if they choose applicances they will see refrigerator, range, dryer etc. What is the best way to do that? I was thinking to use a dataset a view and just filter the view and bind...
1
1451
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 a section below the dropdown where I can hardcode the filter param (item_id) but I need that hardcoded part to dynamically pass in the current items value. Thanks for any assistance <!-- Repeater --> <asp:Repeater ID="QueryStringRepeater"...
11
37007
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) { // some other code DropDownList ddlGroups = new DropDownList(); ddlGroups.SelectedIndexChanged += new
0
862
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 dropdown box (ddlSort) that has the different options. While editing the AccessDataSource I have tried Order By ? Then when I configure ? parameters I have put in the following: Parameter Souce: Control ControlID: ddlSort In the dropdown list I...
1
3207
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 didn't work for this that is why I'm using the script. The script is registered with... ScriptManager.RegisterStartupScript(Page, GetType(), "Update", String.Format("$get('{0}').click();", buttontoclick.ClientID), true); <asp:UpdatePanel...
0
9704
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9571
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10318
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10302
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9132
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7608
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6845
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5639
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
3
2976
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.