zoukankan      html  css  js  c++  java
  • .NET中三种获取当前路径的代码,经常用到的Web变成,WinForm编程,Windows Mobile 编程

  •  .NET中三种获取当前路径的代码,经常用到的Web变成,WinForm编程,Windows Mobile 编程
  • //Web编程
  • HttpContext.Current.Server.MapPath("FileName")
  • System.Web.HttpContext.Current.Request.Path
  • //Windows编程
  • System.Environment.CurrentDirectory
  • //Mobile编程
  • Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().GetName().CodeBase); 
查看全文
  • 相关阅读:
    spring+ springmvc + websocket+sockjs 404/200
    spring+ springmvc + websocket+sockjs 404/200
    Java中assert(断言)的使用
    Java中assert(断言)的使用
    shiro 静态页面资源不显示 解决方案
    shiro 静态页面资源不显示 解决方案
    彻底解决 intellij IDEA 卡顿 优化笔记
    彻底解决 intellij IDEA 卡顿 优化笔记
    bigdecimal 保留小数位
    bigdecimal 保留小数位
  • 原文地址:https://www.cnblogs.com/millen/p/1500302.html
  • Copyright © 2011-2022 走看看