在类库中添加引用 System.Web.DLL 再using System.Web调用HttpContext.Current.Server.MapPath()就可以了
在winform中对字符串进行编码引用System.WebSystem.Web.HttpUtility.UrlEncode(str)
Powered by: 博客园 Copyright © 2024 Rich.T Powered by .NET 9.0 on Kubernetes