【发布时间】:2012-04-24 12:03:44
【问题描述】:
如何在 windows 窗体中显示来自 REST Web 服务的字符串,我的 xml 如下所示:
<string>whatever</string>
如何在 win 表单的文本框中显示它?
如果我尝试
string uri = string.Format("etc/{0}/{1} Sad.Text, Happy.Text");
XDocument xDoc = XDocument.Load(uri);
string mystring = xDoc.Element("String").Value;
textBox1.Text = mystring;
你得到一个对象引用错误?
【问题讨论】:
-
@V4Vendetta 你几乎可以回答这个问题
-
哈哈哈......是的,天花板看起来很奇怪:S
标签: c# string wcf web-services rest