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 show only month and year fields in android Date-picker?

How to construct a B+ tree with example

Conflict Serializability in database