Home > Net >  In a console program, please how to use the System. Web. HttpUtility. UrlDecode?
In a console program, please how to use the System. Web. HttpUtility. UrlDecode?

Time:11-26

If the new project is asp.net you can use the System. Web. HttpUtility. UrlDecode, if is not even using asp.net System. Web, also cannot call HttpUtility, could you tell me why? How to do?

CodePudding user response:

Because only the aso.net is a web application, can use urldecode, their frameworks

CodePudding user response:

system.net.http

CodePudding user response:

https://docs.microsoft.com/zh-cn/dotnet/api/system.web.httputility.urldecode? View=netframework - 4.5.2 # System_Web_HttpUtility_UrlDecode_System_String_

CodePudding user response:

Reference System. Web. DLL

CodePudding user response:


The.net framework under the
The
reference
namespace:
System. Web
Assembly:
System. Web. DLL, System. Web. Services. DLL


Netcore under
The
reference
namespace:
System. Web
Assembly:
System. Web. HttpUtility. DLL
  •  Tags:  
  • C#
  • Related