【发布时间】:2011-07-12 09:46:29
【问题描述】:
我必须下载阅读此网页的内容,我正在使用此代码 它适用于 Windows 手机应用程序
string html = new StreamReader(Application.GetResourceStream(new Uri("http://www.knbsb.nl/nw/index.php?option=com_content&view=category&layout=blog&id=382&Itemid=150&lang=nl&LevelID=120&CompID=1580", UriKind.Relative)).Stream).ReadToEnd();
我知道 UriKind 设置为相对,但它必须用于其他脚本。
所以基本上我必须将网页从绝对 Uri 变成相对 Urikind。 但我不知道该怎么做!
【问题讨论】:
标签: c# windows-phone-7 uri relative-path streamreader