Wednesday, December 28, 2016

ASP.NET Web Forms Site

              Creating The new ASP.NET Web Forms Site in VS 2018 in This template enables you to set up a basic ASP.NET website. It contains a number of files and folders to jump-start the development of your site. The different file types are all discussed later in this chapter. The special App_Data folder and the functionality of the pages in the Account folder are discussed later in this book. This template uses an external framework called Bootstrap, a front-end framework that helps you to build websites that look great on multiple devices such as desktops, tables and phones. Unfortunately, a number of the controls that ship with ASP.NET (such as the Menu control you’ll see later) don’t render properly when using Bootstrap. That’s why I decided not to use this framework in this book, but instead to focus on all the functionality that ships with ASP.NET. For your own projects, you could use this Visual Studio template with Bootstrap, but you’ll need to implement alternatives for controls like the Menu. You can learn more about Bootstrap at http://getbootstrap.com.

ASP.NET Web Site (Razor v2 / Razor v3  

      You use these templates to create sites using Microsoft’s Web Pages framework.

ASP.NET Empty Web Site

                  The ASP.NET Empty Web Site template gives you nothing but two configuration files (Web.config and Web.Debug.config). The ASP.NET Empty Web Site template is useful if you have a bunch of existing files you want to use to create a new website or when you want to create your site from scratch. You use this template as the basis for the sample website you build in the book and add files and folders as you progress through the book.

ASP.NET Dynamic Data Entities Web Site

                  This template enables you to create a flexible yet powerful website to manage data in a database without a lot of manual code. This template is not discussed in this book, but you learn more about the Microsoft ADO.NET Entity Framework that is used by the template in later section. WCF Service This template enables you to create a website containing one or more Windows Communication Foundation (WCF) Services. A WCF Service is somewhat similar to a web service in that it enables you to create methods that are callable over a network. However, WCF Services go much further than simple web services and offer you a lot more flexibility. You see how to create and consume a web service from a browser in Chapter 10.Although it seems you have to make a clear choice up front for the right website template, this isn’t really the case. Because an ASP.NET website in VS is essentially just a reference to a folder, it’s easy to add types from one template to another. For example, it’s perfectly acceptable (and very common) to add a WCF service file to a standard ASP.NET Web Forms Site or an ASP.NET Empty Web Site, as you see in later.

Creating and Opening a New Website

You have a number of different ways to create new and open existing websites. The choices you have here are largely influenced by the way you access the website (either on your local machine with Visual Studio on it or on a remote machine), and whether you want to use IIS Express (the built-in web server that ships with VS) or the full version of IIS — the web server that comes with Windows. All the examples in this book assume that you open sites from your local hard drive and that you use IIS Express, a trimmed down version of IIS, because it’s very convenient to develop sites with it.
However, later I will shows you how to use and configure the full version of Internet Information Services, or IIS for short. This advanced web server comes with most editions of Windows and is mostly used for production hosting of your websites on the server editions of Windows, because it’s capable of serving web pages in high-traffic scenarios.

Creating New Websites

The next Try It Out section guides you through creating the Planet Wrox website, which is the project you work on in this book. All exercises in the remainder of the book assume you have this website open in VS, except where stated otherwise. The exercise instructs you to store your website
in a folder called C:\BegASPNET\Site. Take note of this folder name, because it’s used throughout this articles. If you decide to use a different folder, be sure to use your own location whenever you see this folder name in the book. Make sure you don’t use special characters like the hash (#) or insert a space in the folder name because you’ll run into trouble when developing your site. Finally, make sure you don’t create this folder under your Windows Documents folder (typically at C:\Users\ UserName\Documents), because you’ll run into problems later when accounts other than your own need access to your site this was the answer of ASP.NET Web Forms Site.


Creating a New ASP.NET 4.5.1 Website


No comments:

Post a Comment

We are happy for leaving comments,we will don't let you bite stay with us

Popular Posts

Contact Form

Name

Email *

Message *