954,560 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Nested repeater bind data from different arraylist

I m using nested repeater
repeater1>
label1>
repeater2>
label2> data coming from arraylist(ar1) <%container.Dataitem>
Textbox> data coming from two different arraylist??(ar2 and ar3)


Earilier I hv connected one arraylsit with it . It was working fine. but the problem is now I have 3 different arraylist for 2 different controls.

Three arraylist ar1,ar2,ar3

in Textbox i want id to come from ar1 name to come from ar2

and in label i want text from ar3.

I was using <%#container.Dataitem%> if I m using only one array list but if I use it three times it is not working.

In repeater2 i m doing
label text=<%#container.Dataitem%>
input name=<%#container.Dataitem%> id=<%#container.Dataitem%>
but I don't know how to bind data in repeater 2 to ar1,ar2,ar3.

I was trying to hv this type of structure

Category1

1. Sub Category1(text->ar3) Textcontrol(name-ar1,id-ar2)

2. Sub Category2(text->ar3) TextControl(name-ar1,id-ar2)

3. Sub Category3(text->ar3) TextControl(name-ar1,id-ar2)

Category2

1. Sub Category4(text->ar3) Textcontrol(name-ar1,id-ar2)

2. Sub Category5(text->ar3) TextControl(name-ar1,id-ar2)

3. Sub Category6 (text->ar3) TextControl(name-ar1,id-ar2)

PS1
Newbie Poster
1 post since Dec 2009
Reputation Points: 10
Solved Threads: 0
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You