Why is HttpUtility available in one project but not the other?

  • Thread starter Thread starter Brett
  • Start date Start date
B

Brett

In one vb.net project, I can do

Imports System.Web.HttpUtility

and have access to the URLEncode method.

In another project, the same import says HttpUtility is not a member of Web.
Why would that happen?

Thanks,
Brett
 
Brett said:
In one vb.net project, I can do

Imports System.Web.HttpUtility

and have access to the URLEncode method.

In another project, the same import says HttpUtility is not a member of
Web. Why would that happen?

Add a reference to "System.Web.dll". Select the project in the solution
explorer, right-click it, select "Add reference..." from its context menu,
select "System.Web.dll" from the ".NET" tab.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top