반응형
왜그럴까??
삽질중 구글링~!! O_O
어셈플리 참조하면된다...
괜한 삽질만 해되었다(?)
using System.Web 만 해주면 될 줄알았더니
참조 해줘야하네~!
역시 기초가 중요합니다
기초~!
답은 역시나 구글에 있엇다
http://www.dotnetmonster.com/Uwe/Forum.aspx/dotnet-csharp/5257/System-Web-HttpUtility-is-not-available
System.Web.HttpUtility is not available
Thread view:
Enable EMail Alerts Start New Thread
Thread rating:
bullshark - 20 Oct 2003 00:48 GMT
Hi all.
Just tearing my hair out here. VSN03 XP all latest.
I'm trying to gain use of System.Web.HttpUtility.UrlEncode("string").
The problem is, it isn't there.
I've got:
using System.Web;
I've tried:
System.Web.HttpUtility.UrlEncode("mystring");
Intellisense for System.net only offers:
AspNetHostingPermission
AspNetHostingPermissionAttribute
AspNetHostingPermissionLevel
The 'FindType' utility tells me it's there:
E:\Visual Studio Projects>findtype httputility
class System.Web.HttpUtility
class System.Web.HttpUtility+UrlDecoder
Any attempt to use HttpUtility just gets:
cs(29): The type or namespace name 'HttpUtility' does not exist in the class or namespace 'System.Web' (are you missing an assembly reference?)
My VS.net03 help finds it with F1 and tells me the namespace is System.Web...
Fer Gosh sakes...it's fully qualified AND I've got the using System.Web clause
What is going on?
bullshark
Reply to this Message
Michael Culley - 20 Oct 2003 01:37 GMT
Most likely you need to add a reference to it. Right click references in the treeview in solution explorer, click add, find
System.web and add it.
'.NET' 카테고리의 다른 글
모듈에 어셈블리 매니페스트가 있어야 합니다 (1) | 2012.08.27 |
---|---|
Get primary key on insert / Insert Primary Key 얻기 (0) | 2009.11.04 |
.NET connection strings 레퍼런스 (0) | 2009.10.30 |
그리드뷰 샘플 gridview msdn asp.net 2.0 예제 (0) | 2009.07.06 |
자바 스크립트 스크립트 메니져 (0) | 2009.05.19 |
Enumerator 예제 (0) | 2009.04.28 |
C#으로 만드는 자바 스크립트, Script# C (0) | 2009.04.13 |
Windows Form에서 비동기적으로 소리 로드 System.Media; SoundPlayer (0) | 2009.03.10 |