MVC 5 Scaffolded view problem
-
Hello ! I want to create a MVC 5 application using Visual Studio 2013 . I have the following problem : I created a controller to display data from a table and then created a view using Add View for the
return View();
method . The view is created , but when I try to go to the view from the controller , the "Unable to find a matching view" error is shown . How can I link the view to the controller ? Sorry if this question was asked before .
-
Hello ! I want to create a MVC 5 application using Visual Studio 2013 . I have the following problem : I created a controller to display data from a table and then created a view using Add View for the
return View();
method . The view is created , but when I try to go to the view from the controller , the "Unable to find a matching view" error is shown . How can I link the view to the controller ? Sorry if this question was asked before .
Problem solved , apparently my view wasn't named properly .
-
Hello ! I want to create a MVC 5 application using Visual Studio 2013 . I have the following problem : I created a controller to display data from a table and then created a view using Add View for the
return View();
method . The view is created , but when I try to go to the view from the controller , the "Unable to find a matching view" error is shown . How can I link the view to the controller ? Sorry if this question was asked before .
Hi, Your View Name is same as controller Method Name and also in correct folder as per Controller Name ? Thanks Raviranjan
-
Hi, Your View Name is same as controller Method Name and also in correct folder as per Controller Name ? Thanks Raviranjan
I created the view , but renamed it , so the controller didn't recognize it . Thanks !