<asp:DataList ID="dtCategoryList" runat="server" Visible="true" CellPadding="4" RepeatColumns="4" RepeatDirection="Horizontal" CellSpacing="35" HorizontalAlign="left" Width="185px" >
<ItemTemplate>
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td align="left">
<table cellpadding="0" cellspacing="0" border="0" width="100%">
<tr>
<td align="center" height="30px">
<asp:LinkButton Font-Underline="false" ID="lblMoodName" runat="server" Text='<%# Eval ("CategoryName").ToString ().Length > 20 ? Eval ("CategoryName").ToString ().Substring (0, 20) + "..." : Eval("CategoryName").ToString ()%>' ToolTip='<%# Eval ("CategoryName")%>' CommandArgument='<%# Eval("CategoryId")%>' ></asp:LinkButton>
</td>
</tr>
</table>
</td>
</tr>
</table>
</ItemTemplate>
</asp:DataList>
In server side Get the details based on geatory id and
dtCategoryList.DataSource = dtDetails;
dtCategoryList.DataBind();