Windows Phone SDK - What can I use instead of Syst

2019-06-06 13:59发布

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

2条回答
Fickle 薄情
2楼-- · 2019-06-06 14:09

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?

查看更多
够拽才男人
3楼-- · 2019-06-06 14:15

Now It is solved by using this :

Windows.Data.Html.HtmlUtilities.ConvertToText("your_html_string");
查看更多
登录 后发表回答