.NET Web开发笔记

HttpWebRequest

HttpWebRequest默认关闭Cookies,给其赋初始值以打开Cookies读写

myRequest.CookieContainer = new CookieContainer()

asax

在asax中获取虚拟路径对应的物理路径:HostingEnvironment.MapPath()

编码

UrlEncode()方法也可以指定要用的字符编码格式

原文地址:https://www.cnblogs.com/guiguixyz/p/6005347.html