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
- Tim M on Passing an object to ObjectDataSource
- harin yadav.C on Html to Pdf in .NET
- harin yadav.C on Html to Pdf in .NET
- gautham on Html to Pdf in .NET
- How To Convert HTML To PDF With Image Tags Using iTextSharp | Top Online Trading on Html to Pdf in .NET