我用了
using System;
using System.Web;
using System.Text;在编译
HttpUtility.UrlEncode("8/14/2005",Encoding.UTF8);
时出错,
The type or namespace name 'HttpUtility' could not be found
所以请问,我该怎么办才能用HttpUtility呢?HttpUtility应该再System.Web namespace里呀
using System;
using System.Web;
using System.Text;在编译
HttpUtility.UrlEncode("8/14/2005",Encoding.UTF8);
时出错,
The type or namespace name 'HttpUtility' could not be found
所以请问,我该怎么办才能用HttpUtility呢?HttpUtility应该再System.Web namespace里呀
System.Web.HttpUtility.UrlEncode("8/14/2005", Encoding.UTF8);
只有三个class.
AspNetHostingPermission
AspNetHostingPermissionAttribute
AspNetHostingPermissionLevel
那为什么呢?MSDN的System.Web 里确实有HttpUtility。那我需要更新我的类库马?怎么更新呢?谢谢!
# command line compiler (CSC) will process as part
# of every compilation, unless the "/noconfig" option
# is specified. # Reference the common Framework libraries
/r:Accessibility.dll
/r:Microsoft.Vsa.dll
/r:System.Configuration.Install.dll
/r:System.Data.dll
/r:System.Design.dll
/r:System.DirectoryServices.dll
/r:System.dll
/r:System.Drawing.Design.dll
/r:System.Drawing.dll
/r:System.EnterpriseServices.dll
/r:System.Management.dll
/r:System.Messaging.dll
/r:System.Runtime.Remoting.dll
/r:System.Runtime.Serialization.Formatters.Soap.dll
/r:System.Security.dll
/r:System.ServiceProcess.dll
/r:System.Web.dll <--------------- 注意这一行
/r:System.Web.Mobile.dll
/r:System.Web.RegularExpressions.dll
/r:System.Web.Services.dll
/r:System.Windows.Forms.Dll
/r:System.XML.dll