Article View: borland.public.csharpbuilder.language.csharp
Article #267New to C# - System.Web.HttpUtility.Encode()
From: Jack
Date: Wed, 07 Dec 2005 19:43
Date: Wed, 07 Dec 2005 19:43
20 lines
1483 bytes
1483 bytes
Hi all, New to C# and BDS 3.0, I am looking at the following compiler error: [C# Error] The type or namespace name 'HttpUtility' does not exist in the class or namespace 'System.Web' (are you missing an assembly reference?) ... for the line of code: Uri location = new Uri(MY_URL + "/get?&ik=" + System.Web.HttpUtility.UrlEncode(this._session.IdentificationKey); "using System.Web;" is included in the unit. Why is this error reported by the compiler while I am able to select this method with Code Completion... ? Thanks in advance for your assistance, J.
Technical Details
Message-ID:
<43973b15$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!meganewsservers.com!feeder2.on.meganewsservers.com!news-out.superfeed.net!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Thread: 1efe35,f7c4c35132127d8b,start X-Google-Attributes: gid1efe35,public X-Google-Language: ENGLISH,ASCII-7-bit Date: Wed, 07 Dec 2005 20:43:13 +0100 From: Jack <Wackoj123@GMail.com> User-Agent: Thunderbird 1.4.1 (Windows/20051006) MIME-Version: 1.0 Newsgroups: borland.public.csharpbuilder.language.csharp Subject: New to C# - System.Web.HttpUtility.Encode() Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 83.160.255.49 Message-ID: <43973b15$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1133984533 83.160.255.49 (7 Dec 2005 11:42:13 -0700) Lines: 20 Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!meganewsservers.com!feeder2.on.meganewsservers.com!news-out.superfeed.net!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail