• USA : +1 973 910 5725
  • INDIA: +91 905 291 3388
  • info@tekslate.com
  • Login

Create MVC application in .NET

Create an MVC application

Go to visual studio.net

3

Click on file

3

Click on new

3

Click on project

3

Select visual c# from installed template.

3

Select ASP.net WVC web application template

3

Type the application name (example)

3

Select the location to save

3

Click on ok.

 

2This will create an ASP.net MVC2 web application.

2When we create ASP.net MVC2 web application it will create 5 folders.

  1. Content
  2. Controllers
  3. Models
  4. Views
  5. Scripts

 

  1. Content folder:

This folder will contain all the required CSS file that are to be attached to the view pages.

 

  1. Views folder:

By default views folder will contain 3 folders in to follows

  1. Account
  2. Home
  3. Shared

2Then every folder contains some view page.

2Shared folder contains commonly used files like, master pages, user control etc.

2Hear we find only .aspx pages we do not find .cs files

2 .cs files will be available in controller’s folders and models folder.

These core tutorials will help you to learn 
the fundamentals of ASP.Net.
For an in-depth understanding and practical experience, 
explore Online ASP.Net Training.
  1. Controllers folder:

This folder will contain one .cs file for every folder available in views.

2In views we have home folder and account folder so we find two supported files in controller folders.

  1. Account controller folder.cs
  2. Home controller.cs

2Every controller file will contains some method called action method with name of webpage.

2I.e. home controller.cs we find 4 action methods

  1. Change password ()
  2. Change password success ()
  3. Logon ()
  4. Register ()
  5. Models folder:

2This folder will contain one super file one each folder available in views

2In case the view is contain the data from data base

 

  1. Scripts folder:

It will contain all java script and journey files which contains the code related to validation.

For indepth understanding click on

“At TekSlate, we are trying to create high quality tutorials and articles, if you think any information is incorrect or want to add anything to the article, please feel free to get in touch with us at info@tekslate.com, we will update the article in 24 hours.”

0 Responses on Create MVC application in .NET"

Leave a Message

Your email address will not be published. Required fields are marked *

Site Disclaimer, Copyright © 2016 - All Rights Reserved.