<%
string url = "http://twitter.com/statuses/user_timeline/8607272.rss";
Rss.RssFeed feed = Rss.RssFeed.Read(url);
Rss.RssChannel channel = (Rss.RssChannel)feed.Channels[0];
foreach (Rss.RssItem item in channel.Items)
{
Response.Write( item.Description + " " );
Response.Write( "<small><a href='" +item.Link + "'>" + item.PubDate + "</a></small><br><br>" );
}
%>
Make sure your page has .ASPX extension and starts with famous
<%@ Page Language="C#" Debug="false" %>
Žádné komentáře:
Okomentovat