How To Create First Application in MVC.Follows Some Steps-
STEP 1. Firstly Go Start menu in Computer And Click on Installed Visual studio.
Ex.
Open This Window after processing next window open like-
Ex.
STEP 2. Create new application select new project or We Also Select in file new project.
Click on a new project.
STEP 3. Choose Your Project Save Location and Select Asp.net web Application and click on button.Next Open window.
Select MVC and Click OK button Then open Application We See.
We see folder Model ,View and Controller.
Model - Right Click on Model folder and Add New Class .We Declare Property And Data type
Which is use in Project.
Controller - Make Function and use Model classes in Controller and Add view easly through controller action .Coding Part Write in Controller
View - Use Model class and Create design part in view.
Content - This folder contain all CSS regarding Project Releted.
Script - This folder contain All JS we use in our Project
WebConfig - Connection String Write in Web Config.
Global - We define route of application page
0 comments :
Post a Comment