问题描述
我对 Windows Phone
开发还很陌生,我有很多类,我认为通过使用 System.Web
中的一些函数会很简单(即HttpUtility.ParseQueryString
).但似乎 System.Web
在 Windows Phone
上不可用?
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?
我真的不想手写ParseQueryString
之类的函数.
I'd really like to not have to hand write functions like ParseQueryString
.
关于如何在我的 Windows Phone
应用中获取对 System.Web
的引用有什么建议吗?
Any advice on how to get a reference to System.Web
in my Windows Phone
app?
干杯!布雷特
推荐答案
widows phone sdk 中好像没有这样的方法,你可以像这样使用自己的代码 http://code.google.com/p/google-gdata/source/browse/trunk/clients/cs/src/core/HttpUtility.cs?r=961
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
您可以在此讨论中获得更多信息,Windows Phone 7 中的HttpUtility.UrlEncode?a>
More info you can get at this discussion,HttpUtility.UrlEncode in Windows Phone 7?
这篇关于Windows Phone SDK - 我可以用什么来代替 System.Web?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!