Asp.net中提示【当前上下文中不存在名称“Request“或"Server"】解决方法!
2012-12-29 18:52
861 查看
HttpFileCollection files = System.Web.HttpContext.Current.Request.Files;
string url = System.Web.HttpContext.Current.Server.MapPath("/File/" + gfilename + filenameext);
就是在前面加上【System.Web.HttpContext.Current.】
string url = System.Web.HttpContext.Current.Server.MapPath("/File/" + gfilename + filenameext);
就是在前面加上【System.Web.HttpContext.Current.】
相关文章推荐
- asp.net 关于提示“当前上下文中不存在名称"XXX"”的一种情况的解决办法
- asp.Net中“当前上下文中不存在名称XXX”的解决方法
- asp.net 当前上下文中不存在名称“Server”解决办法
- Asp.Net 之 当前上下文中不存在名称" Server "
- ASP.NET出错-当前上下文中不存在名称"Response"
- MVC中调用Public_Class时,VS2012老提示:当前上下文中不存在名称“Json”的解决方法
- ASP.net中"名称以无效字符开头"问题解决方法
- 解决asp.net MVC中 当前上下文中不存在名称“model” 的问题
- asp.net提示运行用户"xxx/ASPNET登录失败"的解决方法
- "ASP.NET Development Server无法开始侦听端口:XXXX"问题的解决方法
- "ASP.NET Development Server无法开始侦听端口:XXXX"问题的解决方法
- 无法创建表,提示:指定的架构名称 "dbo" 不存在,或者您没有使用该名称的权限。解决方法
- ASP.NET出错-当前上下文中不存在名称"Response" .
- 彻底解决asp.net mvc5.2.2:vs2013 cshtml视图文件报错(当前上下文中不存在名称“model”,ViewBag,Url)
- asp.net解决:当前上下文中不存在名称“Session”
- [收藏]Asp.Net 连接Oracle数据库 出现"找到 Oracle 客户端和网络组件" 彻底解决方法!
- QTP弹出提示"当前安全设置禁止安全运行该页中的activeX控件"的解决方法
- asp.net中使用fckeditor时,提示“this connector is disabled Please check the"editor/filemanager/connectors/aspx/config.aspx”解决办法
- 当前上下文中不存在名称 windows phone 解决方法
- paip..net VS2010提示当前上下文中不存在名称的解决