码迷,mamicode.com
首页 > Web开发 > 详细

MVC获取文件路径

时间:2017-04-18 10:04:25      阅读:266      评论:0      收藏:0      [点我收藏+]

标签:tpc   text   参数文件   app   ase   ice   request   名称   ring   

string ss = base.HttpContext.Request.RawUrl;//获取当前项目路径
string cc= Server.MapPath("DDTek.lic");//获取绝对路径,参数文件名称

//HttpContext.Server请求对象非静态

//HttpContext httpcontext = System.Web.HttpContext.Current;

HttpContext httpcontext = HttpContext.Current;
string LicensePath = httpcontext.Server.MapPath("DDTek.lic");//获取绝对路径,参数文件名称

MVC获取文件路径

标签:tpc   text   参数文件   app   ase   ice   request   名称   ring   

原文地址:http://www.cnblogs.com/914556495wxkj/p/6725928.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!