Web application absolute path
Just a reminder on how to get the absolute path for the webapplication in ASP.NET
HttpContext.Current.Request.Url.GetLeftPart(UriPartial.Authority) + VirtualPathUtility.ToAbsolute(HttpContext.Current.Request.ApplicationPath)
This will return http://subdomain.domain.com/applicationname
You can drop those AppSettings with ApplicationPath
No comments yet.
Leave a comment
Search
Knut Hamang
Recent Posts
Recent Comments
- Jack on Html to Pdf in .NET
- Øyvind on Creating dynamic menus in EPiServer
- Jim Liddell on [Updated] Continuous Integration using an LCD-TV
- Arshika on Html to Pdf in .NET
- Arshika on Html to Pdf in .NET