Click here to Skip to main content
15,935,728 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:

I have used Datalist(name is dl1) in my project. there is also one more datalist (name is dl2) inside datalist dl1.

now i have to display same as facebook post :

datalist dl1 displays : Image,post,Posted username,comment(linkbutton),like(link button)

so, when user click on like linkbutton in datalist dl1 then datalist dl2 will be popup using Ajax popupcontrolextender.

:-D i already implement it . now my question is :

but datalist dl2 will be popup only i click on like linkbutton of datalist dl1's last record.
i mean suppose datalist dl1 displays 5 record , so when i click on record 1,2,3,4 's like button then datalist dl2 will not show. but when i click on last record(record 5) then datalist dl2 will be shown

Thanks .
Shailesh prajapati
Updated 23-Dec-10 22:55pm
Ankur\m/ 25-Dec-10 5:11am    
Accept answer only if an answer answers/solves your issue.

1 solution

Pass id of record. Your select query retriving only last record from database. If I'm not wrong
Share this answer
shailesh125 24-Dec-10 5:15am    
Thanks for replying.

sir, My select query will retrieve all record.
but my question is that suppose datalist dl1 shows 10 records. so when i click on any record between 1 to 9 then datalist dl2 will be not shown. actually it is may be hide. but when i click last record then it is shown
TejuKrishna 24-Dec-10 5:19am    
modify your child query by passing that 1-9 id of parrent datalist. Call second query on the basis of this id try this may be help.
shailesh125 24-Dec-10 8:51am    
sorry sir, still i am not getting it.

and my question is that second datalist is hidden behind the first datalist so, it is not shown.

so, please tell me how to show it.

and when i click on last record of datalist then it is shown. because first datalist is complete there so, second datalist is shown under first datalist.

so, i think i have to change the position of second datalist .?
how to change it?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900