Converts a virtual path to an application absolute path.
VirtualPathUtility.ToAbsolute("~/media/images/" + panel.Id)
use MapPath to resolve virtual paths and physical paths.
HttpContext.Current.Server.MapPath(@"xml/content/" + lXmlFile);
HttpContext.Current.Request.MapPath(@"xml/content/" + lXmlFile);
没有评论:
发表评论