Url (ROTA) with NOMES and not ID

1

How can I dynamically change a URL in a BD search of the Id's by NAME to become a more friendly URL (SEO).

My URL today:

link - being 26 = STATUS, 8717 = CITY , 1 = NEIGHBORHOOD, 2 = CATEGORY, 3 = BUSINESS

The URL that I think is best for viewing:

link

The route on routes.MapPageRoute looks like this:

routes.MapPageRoute(
            "AcheiCatNegRoute",
            "Achei/{idestado}/{idcidade}/{idbairro}/{idcategoria}/{idnegocio}",
            "~/Achei.aspx"

I think there must be a way for the URL to take the name is not the ID without having to change the database logic, I believe that searching the ID is faster than for a String, I appreciate any help.

Note: I still use WebForms with Asp.NET and SQL.

    
asked by anonymous 18.02.2015 / 15:04

0 answers