You explicitly use the method if you are working with web pages 1, and you want your virtual paths to always display correctly in an absolute URL. From web pages 2, the Href method is called by the framework if the parser encounters a tilde (~) in the URL in your cshtml file, for example.
<script type="text/javascript" src="~/Scripts/jquery.js"></script>
When can a path be resolved incorrectly without using the HREF method explicitly or tilde? This may not work if the structure of the root root site changes, if you, for example, change the hosting. It may also not work if your internal folder structure changes, or if you move files. If this is unlikely, you probably don't need to worry about using the method. I did not seek to use it until the Khref method was replaced by a tilde. Now I always use it based on the fact that it is much easier to use, and I would prefer to add another keystroke to each URL than regret at some point in the future.
You can learn more about Href about halfway down this page: http://www.asp.net/web-pages/tutorials/basics/2-introduction-to-asp-net-web-programming-using-the- razor syntax
source share