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

Comments

Popular posts from this blog

How to construct a B+ tree with example

How to show only month and year fields in android Date-picker?

Visitor Counter Script Using PHP