Use
VirtualPathUtility
to obtain information like requested path, extension etc in web environment. It is Web version of System.IO.PathVirtualPathUtility.GetExtension(HttpContext.Current.Request.RawUrl)
Comments
Post a Comment