relative path to absolute path

string relativePath = "~/path/file.html"; string absolutepath = ""; if(System.Web.VirtualPathUtility.IsAbsolute(relativePath)) absolutepath = System.Web.VirtualPathUtility.ToAbsolute(relativePath); //or //string absolutePath = Server.MapPath("~/path/file.html")

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.