Create a Simple ASP.Net Core web application

Create asp.net core application, new asp.net web application, how to create asp.net core web application, asp.net application,asp.net core application, asp.net core mvc application,how to create a website using asp.net with c# in visual studio, asp.net application, c# web application examples. net core, how to create web application in asp.net using c#,asp net core 2.2 sample web application,asp.net core web application tutorial,asp net core web application sample project,asp.net web application example,asp.net web application tutorial,asp.net tutorial,asp.net core tutorial



In this article, we will learn how to create a simple ASP.Net core web application in Visual Studio. Here I am using Visual Studio 2019 and my core version is 2.2. For Download and installation of Visual Studio 2019, please click on this link Download

In my previous blog, I already shared about ASP.Net Core and the difference between ASP.Net and ASP.Net Core.

Create Your Web Application:

Follow these below steps for creating a simple web application:

Step-1
Open Visual Studio 2019. Click on Create a new project.

Create asp.net core application, new asp.net web application, how to create asp.net core web application, asp.net application,asp.net core application, asp.net core mvc application,how to create a website using asp.net with c# in visual studio, asp.net application, c# web application examples. net core, how to create web application in asp.net using c#,asp net core 2.2 sample web application,asp.net core web application tutorial,asp net core web application sample project,asp.net web application example,asp.net web application tutorial,asp.net tutorial,asp.net core tutorial

Step-2
Create a new project page will open.  Select ASP.NET Web Application and click on the Next button.

Create asp.net core application, new asp.net web application, how to create asp.net core web application, asp.net application,asp.net core application, asp.net core mvc application,how to create a website using asp.net with c# in visual studio, asp.net application, c# web application examples. net core, how to create web application in asp.net using c#,asp net core 2.2 sample web application,asp.net core web application tutorial,asp net core web application sample project,asp.net web application example,asp.net web application tutorial,asp.net tutorial,asp.net core tutorial

Step-3
Configure your new project will open. Write your project name. Here I gave DemoApp. Click on the Create button.
Create asp.net core application, new asp.net web application, how to create asp.net core web application, asp.net application,asp.net core application, asp.net core mvc application,how to create a website using asp.net with c# in visual studio, asp.net application, c# web application examples. net core, how to create web application in asp.net using c#,asp net core 2.2 sample web application,asp.net core web application tutorial,asp net core web application sample project,asp.net web application example,asp.net web application tutorial,asp.net tutorial,asp.net core tutorial
Step-4
Create a new ASP.NET Core Web Application will open. Here I select MVC Application(Model-View-Controller). Click on the Create button.

Create asp.net core application, new asp.net web application, how to create asp.net core web application, asp.net application,asp.net core application, asp.net core mvc application,how to create a website using asp.net with c# in visual studio, asp.net application, c# web application examples. net core, how to create web application in asp.net using c#,asp net core 2.2 sample web application,asp.net core web application tutorial,asp net core web application sample project,asp.net web application example,asp.net web application tutorial,asp.net tutorial,asp.net core tutorial

Step-5
DemoApp Application will open. This image shows the initial page of your application.

Create asp.net core application, new asp.net web application, how to create asp.net core web application, asp.net application,asp.net core application, asp.net core mvc application,how to create a website using asp.net with c# in visual studio, asp.net application, c# web application examples. net core, how to create web application in asp.net using c#,asp net core 2.2 sample web application,asp.net core web application tutorial,asp net core web application sample project,asp.net web application example,asp.net web application tutorial,asp.net tutorial,asp.net core tutorial

Step-6
Open Solution Explorer. Go to View -> Solution Explorer. On the right-hand side you can see there is no web.config file. Here new 2 files given in your application i.e. Startup.cs,appsettings.json. In the application controller folder, HomeController already created and View and Model also created.

Create asp.net core application, new asp.net web application, how to create asp.net core web application, asp.net application,asp.net core application, asp.net core mvc application,how to create a website using asp.net with c# in visual studio, asp.net application, c# web application examples. net core, how to create web application in asp.net using c#,asp net core 2.2 sample web application,asp.net core web application tutorial,asp net core web application sample project,asp.net web application example,asp.net web application tutorial,asp.net tutorial,asp.net core tutorial

Step-7
open Index.cshtml view page. Go to Solution Explorer -> View->Home->Index.cshtml. In this page some contents already there. You can see it.

Create asp.net core application, new asp.net web application, how to create asp.net core web application, asp.net application,asp.net core application, asp.net core mvc application,how to create a website using asp.net with c# in visual studio, asp.net application, c# web application examples. net core, how to create web application in asp.net using c#,asp net core 2.2 sample web application,asp.net core web application tutorial,asp net core web application sample project,asp.net web application example,asp.net web application tutorial,asp.net tutorial,asp.net core tutorial

Step-8
Now Remove that two lines of content put this new content "Welcome To India".

Create asp.net core application, new asp.net web application, how to create asp.net core web application, asp.net application,asp.net core application, asp.net core mvc application,how to create a website using asp.net with c# in visual studio, asp.net application, c# web application examples. net core, how to create web application in asp.net using c#,asp net core 2.2 sample web application,asp.net core web application tutorial,asp net core web application sample project,asp.net web application example,asp.net web application tutorial,asp.net tutorial,asp.net core tutorial

Step-9
Before build or run the application first check the route configuration. Go to Solution Explorer -> Startup.cs. Here we run the HomeController and Index.cshtml view page. The following code is for the route configuration in ASP.Net core. 

  app.UseMvc(routes =>
            {
                routes.MapRoute(
                    name: "default",
                    template: "{controller=Home}/{action=Index}/{id?}");
            });


Step-10
Build the application, Go to Build -> Build Solution. Then run this application. See the following output screen.

Create asp.net core application, new asp.net web application, how to create asp.net core web application, asp.net application,asp.net core application, asp.net core mvc application,how to create a website using asp.net with c# in visual studio, asp.net application, c# web application examples. net core, how to create web application in asp.net using c#,asp net core 2.2 sample web application,asp.net core web application tutorial,asp net core web application sample project,asp.net web application example,asp.net web application tutorial,asp.net tutorial,asp.net core tutorial

That's it. I hope you have found this article helpful. Do let me know via comments and likes.

Post a Comment

0 Comments