Create MVC application in .NET

Ratings:
(4)
Views:0
Banner-Img
  • Share this blog:

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 the 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

Content folder:

This folder will contain all the required CSS files that is to be attached to the view pages. 

These core tutorials will help you to learn the fundamentals of .NET. For an in-depth understanding and practical experience, explore Online ".NET Training"

Views folder:

By default, the views folder will contain 3 folders as follows

  1. Account
  2. Home
  3. Shared

2Then every folder contains some view page.

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

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

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

Controllers folder:

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

2In view, we have a 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 contain some method called action method with the name of the webpage.

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

Change password ()

Change password success ()

Logon ()

Register ()

Check Out .NET Tutorial

Models folder:

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

2In case the view contains the data from the database  

Scripts folder:

It will contain all javascript and journey files that contain the code related to validation.

 

 

You liked the article?

Like : 0

Vote for difficulty

Current difficulty (Avg): Medium

Recommended Courses

1/15

About Author
Authorlogo
Name
TekSlate
Author Bio

TekSlate is the best online training provider in delivering world-class IT skills to individuals and corporates from all parts of the globe. We are proven experts in accumulating every need of an IT skills upgrade aspirant and have delivered excellent services. We aim to bring you all the essentials to learn and master new technologies in the market with our articles, blogs, and videos. Build your career success with us, enhancing most in-demand skills in the market.


Stay Updated


Get stories of change makers and innovators from the startup ecosystem in your inbox