473,326 Members | 2,732 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,326 software developers and data experts.

DataList control in DataListItem

I need to know, how to bind data into DataList, that is placed in another
DataList in SelectedItemTemplate.
I tried to FindControl on ItemCreated event, on PageLoad event, but I cannot
get this control???

How to do this???

Thanks

Mirek
Nov 21 '05 #1
1 1076
I have found that.
I have Bound parent dataList in code by:

dlDTDefinitions.DataSource = transfers;
dlDTDefinitions.DataBind();

transfers is a List<iDB2SQLTransferItem> and the item (iDB2SQLTransferItem)
contain DataMappings that is List<DataMappingItem>.

in aspx i have to bind DataSource of the child DataList:

<asp:DataList ID="dlDataMapping" runat="server" DataSource='<%#
DataBinder.Eval(Container.DataItem, "DataMappings") %>'>

Thats all

Endys" <Mi****@community.nospam> wrote in message
news:Ol*************@TK2MSFTNGP10.phx.gbl...
I need to know, how to bind data into DataList, that is placed in another
DataList in SelectedItemTemplate.
I tried to FindControl on ItemCreated event, on PageLoad event, but I
cannot get this control???

How to do this???

Thanks

Mirek

Nov 21 '05 #2

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

Similar topics

4
by: V. Jenks | last post by:
What seems like a simple thing is apparently not so straightforward? I have a datalist. Inside of that datalist is an <itemtemplate> secion which contains other server controls such as a...
2
by: News | last post by:
Hi, I need help with datalist and linkbutton. I need a LinkButton to display in datalist if datafield "is_measure_customchecklist" in a db table set to true. Here is the code (in parts): ...
1
by: Lynn | last post by:
Hello, Sorry for the double post...I meant for this to go into this forum. I have built a datalist programatically using an article from MSDN...the article was written specifically for the...
1
by: Phil Corrin | last post by:
.... but I can get the numerical index using the ItemIndex property. Can anyone tell me how to get the text i.e. the data that is listed in the datalist and that is output in the browser? I've...
6
by: tshad | last post by:
I need to get to a status label I have on my footer section of my datalist. There is no event happening that would go to the footer. I am just doing some processing and want to update the label...
0
by: ghafranabbas | last post by:
This is how you use the customvalidator control in any INamingContainer interface control (Datagrid, DataList, DataRepeater, etc). 1. In the ItemTemplate, place your customvalidator 2. Set the...
3
by: Derek | last post by:
I have a nested datalist with a dropdownlist. I need to capture the selectedvalue of the dropdownlist so I can update a database table. My question then is...how do I get the value from the...
1
by: Mirek Endys | last post by:
Hi all, I thought, that this is an usual thing, but Im wrong. I have a DataList control and there is a Label control. I need to change the Text propertz of the Label control. How to do it....
1
by: shantanu_kush | last post by:
Hi there, I am using a DataList in a composite control. The DataList has an Custom ItemTemplate(ITemplate) which adds a Button to the DataList Item as shown in the code below : public class...
1
by: sanju | last post by:
Hi , I am displaying 5 photos of a user(getting image path from database) and binding them to hyperlink control and adding that Hyperlink control to Datalist container in code behind file. ...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

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.