Try this code.....
<asp:DataList ID="maindatalist" runat="server"> <ItemTemplate> <asp:DataList ID="Secondarydatalist" runat="server"> <ItemTemplate> <table width="100%" border="1" bordercolor="#EACCDC" cellspacing="0" cellpadding="0" style=" border-collapse:collapse;" height="100%"> <tr> <td valign="top" width="20%" class="trendalert"><p align="center" style="margin:0px;"><b><asp:Label ID="Lbl_Image_Name" runat="server"></asp:Label></b><br> <asp:Image ID="Image_more" runat="server" width="145" height="224" vspace="3" /></p> <asp:Label ID="Lbl_Img_Desc" runat="server"></asp:Label> </td> </tr> </table> </ItemTemplate> </asp:DataList> </ItemTemplate> </asp:DataList> Juan M. Oviedo Date: Thu, 11 Dec 2008 07:46:02 -0500 From: [email protected] To: [email protected] Subject: [DotNetDevelopment] Re: how to use datalist inside a datalist since you didnt actually state the problem, im guessing the problem is you. On Thu, Dec 11, 2008 at 3:28 AM, vikas arora <[email protected]> wrote: hi all, i m having a problem when i use datalist inside another datalist Example <asp:DataList ID="maindatalist" runat="server"> <ItemTemplate> <ItemTemplate> <table width="100%" border="1" bordercolor="#EACCDC" cellspacing="0" cellpadding="0" style=" border-collapse:collapse;" height="100%"> <tr> <td valign="top" width="20%" class="trendalert"><p align="center" style="margin:0px;"><b><asp:Label ID="Lbl_Image_Name" runat="server"></asp:Label></b><br> <asp:Image ID="Image_more" runat="server" width="145" height="224" vspace="3" /></p> <asp:Label ID="Lbl_Img_Desc" runat="server"></asp:Label> </td> </tr> </table> </ItemTemplate> </asp:DataList> </ItemTemplate> </asp:DataList> _________________________________________________________________ Suspicious message? There’s an alert for that. http://windowslive.com/Explore/hotmail?ocid=TXT_TAGLM_WL_hotmail_acq_broad2_122008
