This project is read-only.

Simple Data Binding Tutorial

Jun 28, 2007 at 9:38 PM
Edited Jun 28, 2007 at 9:40 PM

This is a simple tutorial to binding to a control. In this case we will create a datalist and bind to it upon page load


<asp:DataList ID="dlItems" runat="Server">
<h4><%# Eval("Title") %></h4>
<%# Eval("Content") %>

protected void Page_Load(object sender, EventArgs e)
string feedUri = "";

FeedDotNet.Common.Feed feed = FeedDotNet.FeedReader.Read(feedUri);

this.dlItems.DataSource = feed.Items;
Jun 28, 2007 at 9:40 PM
Sorry, I'm not quite sure how to format code on here.