Creating the new MVC project in visual studio and using View Data
Creating the new MVC project in Visual Studio 2015
- Open Visual Studio
- Goto File -> New -> Project
- Select Templates-> Visual C#-> Web -> Asp.NET Web Application
- Give project Name(Any Name you Want, I Used "MvcWebApp")
Adding a Controller into the project
- Goto Solution Explorer -> Right Click On Controller Folder
- Add-> Controller -> Select MVC5 Controller-Empty(In Add Scaffold Box)
- Give the name for controller HomeController (Suffix xxController mandatory.)
- It will generate following code with one Action Method.
Comments
Post a Comment