Thank you very much Indresh. But I couldn't do it on my project. In my project, i see the pictures with my codes as well. I just want to be shown images as one post while there are multi PostID have the same columns except image column.
İn an example;
Let's say I have these rows
PostID |
YazarID |
ToID |
Post |
PostTarihi |
AktifMi |
IPAdres |
ResimYolu |
522 |
1 |
1 |
test... |
2017-03-24 23:32:13.930 |
1 |
127.0.0.1 |
1-_duvarResimleri_23_32_4_24_3_2017_f18a219c-e80f-4474-ab06-87fad918911d_3215_75037077439_1764588_n.jpg_2.jpg |
523 |
1 |
1 |
test... |
2017-03-24 23:32:13.930 |
1 |
127.0.0.1 |
1-_duvarResimleri_23_32_4_24_3_2017_9149dda3-513c-4740-b1a5-ca42632955cd_4551_86654747439_247317_n.jpg_2.jpg |
524 |
1 |
1 |
test... |
2017-03-24 23:32:13.930 |
1 |
127.0.0.1 |
1-_duvarResimleri_23_32_5_24_3_2017_ff2d5ebc-3672-4afc-946a-61842b33fe3a_1935409_151790713562_5094429_n.jpg_2.jpg |
All posts (with different PostID) have the same data except ResimYolu column. DataList show me 3 same posts in which data are the same to each other. I want to show only one post. I mean, all images in one post. How can I do this?
Meanwhile,
My DataList is in another DataList already. Design page is like this;
<asp:DataList ID="dlPosts" runat="server" Width="100%" RepeatLayout="Flow" RepeatColumns="1" OnItemCommand="dlPosts_ItemCommand" OnItemDataBound="dlPosts_ItemDataBound">
<ItemTemplate>
<asp:DataList ID="dlresimYoluMulti" runat="server" RepeatColumns="2" CellPadding="2" CellSpacing="2" >
<ItemTemplate>
<a href="#">
<img id="imgResimm1" src="../Path/<%#Eval("ResimYolu") %>" width="275" alt="<%#Eval("ResimAdi") %>"
class="w3-margin-bottom" />
</a>
</ItemTemplate>
</asp:DataList>
</ItemTemplate>
</asp:DataList>
Thanks again.