controller - Asp.Net MVC don't show Index action in url -


I like that the operation of the index is not in the URL.

For example, instead of

www.mywebsite.com/MyController/1

I

www.mywebsite.com/ Want to see MyController / Index / 1

Do I have to do something special in the HTML functional tag or global.exp file? {Route} ("index", "/ {controller} / {id}", new {controller = " Home ", action =" index "});

takes action on the default of this "index"


Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -