欢迎各位兄弟 发布技术文章

这里的技术是共享的

You are here

Asp.net中提示【当前上下文中不存在名称“Request“或"Server"】解决方法! 有大用 有大大用

HttpFileCollection files = System.Web.HttpContext.Current.Request.Files;


 string url = System.Web.HttpContext.Current.Server.MapPath("/File/" + gfilename + filenameext);


 


 


就是在前面加上【System.Web.HttpContext.Current.】

————————————————

版权声明:本文为CSDN博主「敦厚的曹操」的原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接及本声明。

原文链接:https://blog.csdn.net/dxnn520/article/details/8451297


来自 https://blog.csdn.net/dxnn520/article/details/8451297



普通分类: