Missing Classes in the System.Web Namespace

T

Typpo

Hi all,

I'm trying to use System.Web.HttpUtility.UrlEncode() method, but I keep
getting the compiler error:

"The type or namespace name 'HttpUtility' does not exist in the
namespace 'System.Web' (are you missing an assembly reference?)"

I am using System.Web and C# 2005 Express Edition Beta. Of the possible
classes, I am able to use only the first three listed on msdn:

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemweb.asp

What am I doing wrong? Thanks in advance.
 
G

Guest

It sounds like you did not add a project reference to System.Web to your
solution.
 

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

Top