Oct 15, 2014, 9:26 AM
[SOLVED] Pass control from controller to view
I have a ASP.NET MVC web site.
In the controller folder I have the file PianoFerieOreMeseController.cs where in one method i put the following code :
What is the error because the redirection not work ?
Thanks
Simone
In the controller folder I have the file PianoFerieOreMeseController.cs where in one method i put the following code :
if (cpfs!=null)
{
List<PianoFerieOreMeseModel> model = new List<PianoFerieOreMeseModel>();
PopolaModel(model,cpfs);
return View ("/PianoFerieOreMese/Index", model );
}
In the View folder I have a folder named PianoFerieOreMese with into a file Index.cshtml.What is the error because the redirection not work ?
Thanks
Simone
Last edited by simonespagna; Oct 15, 2014 at 1:11 PM.