Miscellaneous .NET tips, code, comments, and what-not.

Monday, March 14, 2005

RDF to ASP.NET Control: Step 2

Create the DataList control (that will be in your .aspx page):




<asp:DataList ID="myDelLinksDG" Runat="server" >
<ItemTemplate>
<table width=100% border="0">
<tr><td valign="top" align="left" width="60%">
<a href='<%# DataBinder.Eval(Container.DataItem, "link") %>'><%# DataBinder.Eval(Container.DataItem, "title") %></a></td>
</tr>
<tr><td width="10px"></td><td><%# DataBinder.Eval(Container.DataItem, "description") %></td>
<tr><td></td><td><%# DataBinder.Eval(Container.DataItem, "subject") %></td>
</tr>
</table>
</ItemTemplate>
</asp:DataList>




0 Comments:

Post a Comment

<< Home