Global virtualPath
来源:互联网 发布:安卓数据访问 编辑:程序博客网 时间:2024/04/30 11:13
public static class Global
{
public static string TempPath { get; set; }
public static string RootPath { get; set; }
public static string FilePath { get; set; }
public static string ConfigPath { get; set; }
public static string VirtualPath { get; set; }
public static string UrlParser(string url)
{
return Regex.Replace(url, "^~/", VirtualPath + "/");
}
}
protected void Page_Load(object sender, EventArgs e)
{
Global.VirtualPath = Request.ApplicationPath.TrimEnd('/');
string originalPath = Request.Path;
HttpContext.Current.RewritePath(Request.ApplicationPath, false);
IHttpHandler httpHandler = new MvcHttpHandler();
httpHandler.ProcessRequest(HttpContext.Current);
HttpContext.Current.RewritePath(originalPath, false);
}
- Global virtualPath
- global
- Global LB
- GLOBAL运用
- GLOBAL.ASAX
- Global.asax
- global.c
- global.cpp
- Global.asax
- Global 事件
- Global.asax
- Global.asax
- Global Warming
- GLOBAL变量
- php global
- global.asax
- Global.asax
- global.ascx
- sql事务和存储过程
- Oracle查询用户相关
- [转]二.优秀软件的特点
- 使用org.apache.commons.mail 发送邮件(转)
- hrbeu 1229 网络热身赛的一道DP Sum Of SubRectangular Parallelepiped(数字长方体)
- Global virtualPath
- Oracle 函数小例子
- Linux嵌入式驱动初体验(三)--- 模块接触
- 每周三篇更新,直到当上CTO,立证!
- parseInt(08)或者parseInt(09)错误
- 珍惜身体
- 关于Ibatis从页面传入数据持久层需要注意的地方
- [转]三.人机接口设计 1人机接口设计准则
- cookie用法