Language C# in Forms.
I'm trying to change a label to some xml data that I retrieved, but it I get the error that it can't convert it to a string. It's confusing since im reading it as a string?
I already tried it out in a console project, it works fine there:
Code in Console :
String URLString = "http://query.yahooapis.com/v1/public/yql?...
XmlTextReader reader = new XmlTextReader(URLString);
reader.ReadStartElement("Bid");
Console.Write("YAHOO's current bid price: ");
Console.WriteLine(reader.ReadString());
reader.ReadEndElement();
Code in Forms:
String URLString = "http://query.yahooapis.com/v1/public/yql?...
XmlTextReader reader = new XmlTextReader(URLString);
reader.ReadToFollowing("Bid");
reader.ReadStartElement("Bid");
lblBidPrice.Text = Convert.ToString(reader.ReadString());
reader.ReadEndElement();