导航

2011年7月2日

摘要: using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Text.RegularExpressions;namespace SystemFramework.CommonFunctions{ /// <summary> /// Summary description for MoneyLib. /// </summary> public class MoneyManage { public MoneyManage() { // // TOD 阅读全文

posted @ 2011-07-02 11:25 菜鸟很疯狂? 阅读(1561) 评论(0) 推荐(0)

2011年1月2日

摘要: 在ASP.NET 页面中获得当前路径的方法很多,比如 MapPath 和 Request 对象。但是在 app_Code 文件夹下的类文件. 想要获得当前的目录,会发现上面的 MapPath 和 Request 都无法使用.解决的方法主要是依靠 HttpContext 对象,比如HttpContext.Current.Request.PhysicalPath; // 获得当前页面的完整物理路径.比如 F:\XFU.NSQS\project\website\Default.aspxHttpContext.Current.Request.PhysicalApplicationPath; // 获 阅读全文

posted @ 2011-01-02 15:45 菜鸟很疯狂? 阅读(250) 评论(0) 推荐(1)