Windows Phone SDK - What can I use instead of System.Web?

情到浓时终转凉″ 提交于 2019-12-23 04:38:11

问题


I am fairly new to Windows Phone development, and I have a lot of classes that I thought would be straightforward by using some function in System.Web (namely, HttpUtility.ParseQueryString). But it seems that System.Web is not available on Windows Phone?

Is this correct? Or might I just be missing a way of adding it?

I'd really like to not have to hand write functions like ParseQueryString.

Any advice on how to get a reference to System.Web in my Windows Phone app?

Cheers! Brett


回答1:


It seems there are no such methods available in widows phone sdk, You can use your own code like this http://code.google.com/p/google-gdata/source/browse/trunk/clients/cs/src/core/HttpUtility.cs?r=961

More info you can get at this discussion, HttpUtility.UrlEncode in Windows Phone 7?




回答2:


Now It is solved by using this :

Windows.Data.Html.HtmlUtilities.ConvertToText("your_html_string");


来源:https://stackoverflow.com/questions/10899337/windows-phone-sdk-what-can-i-use-instead-of-system-web

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!