Error in Reading Atom feed of Gmail inbox via C#

Posted by Bhanubysani under ASP.NET on 7/13/2011 | Points: 10 | Views : 2297 | Status : [Member] | Replies : 0
hi in my application i am providing importing gmail contacts...i want to provide gmail inbox to get gmail in box unread mails in our website..plz help me

hi i got this code from some that it is aasigning to xml file..i want to assign to gridview plz change code for assigning to gridview..while iam assigning datareader iam getting problem..

my code is:
protected void Page_Load(object sender, EventArgs e)
//just 2 steps to get your Gmail Atom

//1- Create the object from GmailHandler class
GmailHandler gmailFeed = new GmailHandler("WriteHereYourGmailUs", "WriteHereYourGmailPassword(ex: XXX)");
//2-get the feed :) ,Congratulations
XmlDocument myXml = gmailFeed.GetGmailAtom();

//this part of code is not necessary
//this part should custom according to your
//business needs
XmlElement root = myXml.DocumentElement;
XmlNodeList xmlnode = myXml.GetElementsByTagName("entry");
for (int i = 0; i < xmlnode.Count; i++)
Response.Write(":\t" + xmlnode[i].FirstChild.InnerText + " \n");
Response.Write(":\t" + xmlnode[i].LastChild.InnerText + " \n");


plz help me

Bhanu Prakash Bysani


(No response found.)

Login to post response