Creating an ASP.NET Web Application

Once you are ready with creating an ASP.NET website and deploying it to Azure, open your Visual Studio 2017 instance. Create a new project by navigating to Templates | Visual C# | Cloud and selecting ASP.NET Web Application (.NET Framework), as shown in the following New Project dialog:

Give your project a name and click the OK button to start creating your web application from a template. The next screen will guide you to select the template that you want to use. There exists a number of templates (Empty, Web Forms, MVC, Web API, Azure Mobile App, and so on) available for you to select.

We will select Web Forms here with No Authentication support. When you are ready, click OK to continue:

Visual Studio will then create the project based on the template and the authentication configuration that you selected on the previous screen.

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>
..................Content has been hidden....................

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