|
I'm learning MVC.
So far I have customized the default sample app.
One thing that leave me baffled is...
In the samples app there 2 web config!!
~/web.config
~/Views/web.config
WTF?
Why 2? Which one does what? What's the point?
|
|
|
|
|
Super Lloyd wrote: In the samples app there 2 web config!!
~/web.config
~/Views/web.config
First thing, you can have multiple config files at different levels. One in root folder and one in other branch folder is perfectly Ok. At times, it is needed for folder configuration.
Out here, Views config is to configure views. It is there to block direct access to the view aspx pages that are supposed to be served only through controllers.
|
|
|
|
|
Thanks for the clarifications!
|
|
|
|
|