views:

13

answers:

1

On A c# mvc website, I created a controller with the name NotFound, and then created a default route to an index action on the controller. When I debugged the program it went to the correct controller action but did not display anything in the view. Does any one know why?

A: 

did you do:

return View("some view name");

in the action method?

what does the some view name.aspx contain?

Andrew Bullock
The view was called NoFound.spark, so I did not specify a view name. The view just contained some text
dave
Ok so you at least did `return View();`. Have you configured the spark view engine correctly? http://dev.dejardin.org/documentation/configuring
Andrew Bullock