为什么不HttpUtility类被认可?HttpUtility

由网友(18.ヾ忘羡)分享简介:我试图调用静态 HttpUtility.UrlEn code 在我的VB.NET工程,但IDE不能识别该类说,这是不声明。I am trying to call the static HttpUtility.UrlEncode in my VB.NET project, but the IDE is not reco...

我试图调用静态 HttpUtility.UrlEn code 在我的VB.NET工程,但IDE不能识别该类说,这是不声明。

I am trying to call the static HttpUtility.UrlEncode in my VB.NET project, but the IDE is not recognising the class saying that it is not declared.

我已经导入的命名空间 System.Net 的System.Web 到项目中。

I have imported the namespaces System.Net and System.Web to the project.

我也有以下内容在文件的顶部

I also have the following at the top of the file:

Imports System.Net
Imports System.Web

我是什么做错了吗?

What am I doing wrong?

推荐答案

添加引用 System.Web.dll中到项目中。

阅读全文

相关推荐

最新文章