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); 
查看全文
  • 相关阅读:
    Redis的事务、锁及管理命令
    Redis消息队列
    Redis管理实战
    Redis入门部署及持久化介绍
    MySQL的存储引擎
    MHA高可用及读写分离
    jquery css hover
    SqlParameter 中 top 的使用
    Jquery 操作DropDownList 根据条件选中
    js 数值格式化函数
  • 原文地址:https://www.cnblogs.com/millen/p/1500302.html
  • Copyright © 2011-2022 走看看