Site icon FahmidasClassroom

Create web application by using ASP.NET and C#

Feature

One of the popular ways of developing web application is to use ASP.NET and C#. The basic knowledge of HTML, JavaScript, and CSS will be required to develop a web application. The way of creating web application project and run the application in any browser have been shown in this tutorial. Two ways exist in VS code create a web application using ASP.NET. One way is ASP.NET core empty and another way is ASP.NET Core Web App (Model-View-Controller). The second way has been used here.

Create a new project by selecting ASP.NET Core Web App like the following image.

After creating the project, the window will be looked like the following image.

The index.cshtml file will contains the following content by default.

Click on the Web Browser menu item from the https menu to select the browser where the application will be run.

The following window will appear if the web server run successfully.

By default , the port number , 7283 is used to run the web server. The following output will appear in the browser after running the web application.

Now, modify the content of the index.cshtml file with the following code.

@{
    ViewData["Title"] = "Testing Web Application";
}

<div class="text-center">
    <h1 class="display-4">Testing Website</h1>
    <p>Learn about <a href="https://google.com">First Web Application</a>.</p>

</div>

If the application will execute again then the following will appear.

The way of creating simple web application without database has been shown in this tutorial. The way of creating the web application with the SQL Server database will e shown in the next tutorial.

Exercise:

Create a web application that will contain a front page with a menu with submenu, logo, login/Register option, header image, and a footer.

Exit mobile version