Control.ResolveUrl versus Control.ResolveClientUrl versus VirtualPathUtility.ToAbsolute

前端 未结 4 515
無奈伤痛
無奈伤痛 2020-11-30 07:37

Is there any benifit to using one of these methods over the other when resolving paths which start with the tilde (~)?

Generally, what is a better practice, should y

4条回答
  •  忘掉有多难
    2020-11-30 08:02

    Here's another article that explains the difference between the various ways to resolving paths in ASP.NET -

    Different approaches for resolving URLs in ASP.NET

提交回复
热议问题