What is the best way to implement a friendly URL in ASP.net?

What is the best way to implement a friendly URL in ASP.net?

+3
source share
4 answers

The ASP.NET routing framework provided in .NET 3.5 SP1 is good.

Although it’s very new, it does a very good job of many URL-related tasks and the most commonly used URL-friendly schemes.

It can also be used outside of MVC.

+1
source

The best way to do this is to learn Microsoft's new MVC toolkit ( http://www.asp.net/mvc/ )

See http://weblogs.asp.net/scottgu/archive/2007/11/13/asp-net-mvc-framework-part-1.aspx for an example.

, - , , URL- .

.. 5 URL-, ///5

, (.. ), (../myfile.aspx ). , URL-, .

0

I used the UrlRewriter.Net library. It is small but powerful and easy to set up.

0
source

If you want to do this in earlier versions of the .NET Framework, you can use the RemapURL tool from the IIS 6.0 Resource Kit . We use it, and all that is required is installing a DLL, creating a very simple ini file with your friendly URLs and their associated endpoints, and including the DLL in web service extensions. A very simple guide to here .

0
source

Source: https://habr.com/ru/post/1699372/


All Articles