Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Equivalent function to IO.Path.GetFileName for urls?

Tags:

.net

url

In .NET 4.0, whats the equivalent function to IO.Path.GetFileName for urls?

like image 680
Muleskinner Avatar asked Mar 01 '12 15:03

Muleskinner


1 Answers

You can use Server.MapPath() to map a physical path from a virtual path.

Additionally, there are a number of methods within the HTTPUtility that will help you map various different types of path.

like image 147
Spikeh Avatar answered Oct 03 '22 06:10

Spikeh