how to implement two datalist together using datareader and dataset

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • shailesh prajap
    New Member
    • Dec 2010
    • 1

    how to implement two datalist together using datareader and dataset

    Hello,

    Right now i am making social network project. so, i have to implement functionality like facebook post and write comment on each post.

    basically i use datalist to fill post from post table. but i have to also fill comment from comment table below each post. so, i have to use 2 datalist.

    now my question is i don't know how to implement it. so, first datalist initially fill one record and according to this record datalist2 fill all comments. then again datalist1 fill next record .....etc....

    so, please reply me.

    i want to implement like this :

    post 1: I got distinction in my final semester exam in B.E <--- Datalist1 first row
    comment : congrats dude...... <---Datalist2 firstrow
    comment: thanks <---Datalist2 second row

    post 2: i am going to usa <--- Datalist1 second row
    comment : happy journey <---Datalist2 firstrow


    Thanks.
    please reply me. please help me.
Working...