我有一个js文件 ,然后访问, /www/目录下的xml 文件 ,Global.asax的路邮怎么配置呢

解决方案 »

  1.   


    /// <summary>
            /// 应用程序虚拟根目录路径
            /// </summary>
            public static String AppBasePath
            {
                get
                {
                    if (HttpContext.Current.Request.ApplicationPath == "/")
                        return "";
                    return HttpContext.Current.Request.ApplicationPath;
                }
            }        /// <summary>
            /// 应用程序物理路径
            /// </summary>
            public static String PhysicalApplicationPath
            {
                get {
                    return HttpContext.Current.Request.PhysicalApplicationPath;
                }
            }