Equivalent function to IO.Path.GetFileName for urls?

前端 未结 4 1218
情歌与酒
情歌与酒 2021-01-11 13:54

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

4条回答
  •  [愿得一人]
    2021-01-11 14:30

    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.

提交回复
热议问题