Can i have the following route in ASP.NET MVC :: http://whatever/controller/action.format

Posted by Pure.Krome on Stack Overflow See other posts from Stack Overflow or by Pure.Krome
Published on 2010-03-18T03:36:08Z Indexed on 2010/03/18 3:41 UTC
Read the original article Hit count: 275

Filed under:
|

Hi folks,

is it possible to add a dot format / .format to the end of any route in ASP.NET MVC .. with a default being html or something?

and of course the .format is an optional value.

sample routes:-

http://whatever/controller/action.format
http://whatever/controller/action

those goto the same action method.

cheers!

© Stack Overflow or respective owner

Related posts about asp.net-mvc

Related posts about routing