I have made some progress with the DataList and UserControl this morning but I still try to figure out how I could improve my code (everything work but the GUI is not yet what desired).
In the ASPX file I have something like that :
<asp:DataList ID="dlSpeechBubble" runat="server">
<ItemTemplate>
<CSVSMS:Bubble ID="singleSpeechBubble" runat="server" CurrentDataItem="<%# Container.DataItem %>"/>
</ItemTemplate>
</asp:DataList>
Every object bind well but the problem is that I need the user control to act differently depending of the value of the previous Data is compared to its value.
Where in ASP.NET does the logic between item goes? In PHP I would have do a loop and check with an index -1 and compare value... but how can I do it in ASP.NET?