How to control URL by using MVC -- ver.1

4/1/2014·1 min read

MVC default, support "Home/Index?id=1" case of URL, but if you want to use URL like "Home/Index/1",

MVC default support following case of URL


However, it's doesn't work for "Home/Index/Music". So, looks doesn't work for string case.

I changed following steps to make it support "{Controller}/{Action}/{Routes}"

Control / Action


Actually, i didn't want to make change to this's class(still looking for that case)