Write the following code in an .aspx page to display time at which update was posted along with text.
using System;
using System.Xml;
public partial class TwitterUpdates : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
Yedda.Twitter twitter = new Yedda.Twitter(); // create object that provides required methods
// connect to twitter with your username and password and get your updates in the form of XML
XmlDocument updatesxml = twitter.GetUserTimelineAsXML("twitterusername", "twitterpassword");
XmlNodeList updates = updatesxml.SelectNodes("//status"); // use XPath and look for status elements
foreach (XmlNode update in updates) // take one update at a time
{
string createdat = update["created_at"].InnerText ; // take time at which update was posted
Response.Write( "<b>Posted At : </b> " + Server.HtmlEncode (createdat) + "");
string text = update["text"].InnerText ; // take text of the update
Response.Write( "<b>Text : </b>" + Server.HtmlEncode (text) + "<hr/><p/>");
}
}
}