Click here to Skip to main content
15,886,788 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have a view name Manage stored Under Home folder i.e.
~/Home/Manage

and when I try to access this using this in home controller
C#
public ActionResult Manage(CustomerGroupModel model)
            return ViewContext();



It gives error which is
C#
The resource cannot be found. 
  Description: HTTP 404. The resource you are looking for (or one of its dependencies) could have been removed, had its name changed, or is temporarily unavailable.  Please review the following URL and make sure that it is spelled correctly. 

 Requested URL: /Home/Manage


What I have tried:

it is accessing all other view except this one
Posted
Comments
Mehdi Gholam 7-May-16 1:22am    
Check your spelling for the folder name and run in a debugger.
Richard Deeming 7-May-16 5:55am    
return ViewContext();

If that's not a typo in your question, then you have a compiler error. It should be:
return View();

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900