Creating an ASP.NET web application

Once you are ready to create an ASP.NET website and deploy it to Azure, open your Visual Studio 2019 instance. Follow these steps:

  1. Create a new project by searching for asp.net and then selecting ASP.NET Web Application (.NET Framework), as shown in the following Create a new project dialog:
  1. In the next screen, provide a name for your project and click the Create button to start creating your web application from a template. The next screen will guide you through selecting the template that you want to use. There are a number of templates (Empty project, Web Forms, MVC, Web API, Single Page Application, and more) available for you to select.
  2. We will select Web Forms here, with No Authentication support. When you are ready, click Create to continue:
  1. Visual Studio will then create the project based on the template and the authentication configuration that you selected on the previous screen.
  2. Now, from the Solution Explorer, open the Default.aspx page. It will already have a design and content specified by Visual Studio in its template. Replace the Content tag with the following code:
<asp:Content ID="BodyContent" ContentPlaceHolderID="MainContent" runat="server"> 
 
   <div class="jumbotron"> 
        <h1>Hello Azure Website</h1> 
        <p class="lead">It is a demo application to build Azure website.</p> 
        <p><a href="http://www.kunal-chowdhury.com" class="btn btn-primary btn-lg">Visit site &raquo;</a></p> 
    </div> 
 
</asp:Content> 

As we have just created an ASP.NET web application, let's jump into the next section to publish in to the cloud.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.216.123.120