How to show /About instead of /Home/About url in ASP.NET MVC -


It is possible to do this without changing the underlying architecture because it is about showing a URL.

In fact, I still want to be valid about Home / when the user types it, but instead it appears / above it.

You can add a new route to your global.asax.

EDIT: Ferrète has given you the C # version. I'll give you the VB version:

  routes. MapRoute (with "About", "About", New {{.controller = "home", .action = "about"}) with    

Comments

Popular posts from this blog

qt - switch/case statement in C++ with a QString type -

python - sqlite3.OperationalError: near "REFERENCES": syntax error - foreign key creating -

Python's equivalent for Ruby's define_method? -