Beginning ASP.NET 4.5: in C# and VB
eBook - ePub

Beginning ASP.NET 4.5: in C# and VB

Imar Spaanjaars

Condividi libro
  1. English
  2. ePUB (disponibile sull'app)
  3. Disponibile su iOS e Android
eBook - ePub

Beginning ASP.NET 4.5: in C# and VB

Imar Spaanjaars

Dettagli del libro
Anteprima del libro
Indice dei contenuti
Citazioni

Informazioni sul libro

The ultimate programming guide to ASP.NET 4.5, by popular author and Microsoft MVP Imar Spaanjaars

Updated for ASP.NET 4.5, this introductory book is filled with helpful examples and contains a user-friendly, step-by-step format. Written by popular author and Microsoft ASP.NET MVP Imar Spaanjaars, this book walks you through ASP.NET, Microsoft's technology for building dynamically generated web pages. This edition retains the highly accessible approach to building the Planet Wrox website example, an online community site featuring product reviews, picture sharing, bonus content for registered users, and more.

  • Contains the comprehensive guide to the latest technology additions to ASP.NET 4.5
  • Shows how to build basic ASP.NET web pages and configure their server
  • Includes information on how to add features with pre-built server controls
  • Reveals how to design pages and make them consistent
  • Contains the information needed for getting user input and displaying data

Beginning ASP.NET 4.5 in C# and VB uses Spaanjaars's distinct writing style to put you at ease with learning ASP.NET 4.5.

Domande frequenti

Come faccio ad annullare l'abbonamento?
È semplicissimo: basta accedere alla sezione Account nelle Impostazioni e cliccare su "Annulla abbonamento". Dopo la cancellazione, l'abbonamento rimarrà attivo per il periodo rimanente già pagato. Per maggiori informazioni, clicca qui
È possibile scaricare libri? Se sì, come?
Al momento è possibile scaricare tramite l'app tutti i nostri libri ePub mobile-friendly. Anche la maggior parte dei nostri PDF è scaricabile e stiamo lavorando per rendere disponibile quanto prima il download di tutti gli altri file. Per maggiori informazioni, clicca qui
Che differenza c'è tra i piani?
Entrambi i piani ti danno accesso illimitato alla libreria e a tutte le funzionalità di Perlego. Le uniche differenze sono il prezzo e il periodo di abbonamento: con il piano annuale risparmierai circa il 30% rispetto a 12 rate con quello mensile.
Cos'è Perlego?
Perlego è un servizio di abbonamento a testi accademici, che ti permette di accedere a un'intera libreria online a un prezzo inferiore rispetto a quello che pagheresti per acquistare un singolo libro al mese. Con oltre 1 milione di testi suddivisi in più di 1.000 categorie, troverai sicuramente ciò che fa per te! Per maggiori informazioni, clicca qui.
Perlego supporta la sintesi vocale?
Cerca l'icona Sintesi vocale nel prossimo libro che leggerai per verificare se è possibile riprodurre l'audio. Questo strumento permette di leggere il testo a voce alta, evidenziandolo man mano che la lettura procede. Puoi aumentare o diminuire la velocità della sintesi vocale, oppure sospendere la riproduzione. Per maggiori informazioni, clicca qui.
Beginning ASP.NET 4.5: in C# and VB è disponibile online in formato PDF/ePub?
Sì, puoi accedere a Beginning ASP.NET 4.5: in C# and VB di Imar Spaanjaars in formato PDF e/o ePub, così come ad altri libri molto apprezzati nelle sezioni relative a Informatique e Langues de programmation. Scopri oltre 1 milione di libri disponibili nel nostro catalogo.

Informazioni

Editore
Wrox
Anno
2012
ISBN
9781118332023
Edizione
1
Argomento
Informatique
Chapter 1
Getting Started with ASP.NET 4.5
What you will learn in this chapter:
  • How to acquire and install Visual Studio Express 2012 for Web and Visual Studio 2012
  • How to create your first website with Visual Studio Express 2012
  • How an ASP.NET page is processed by the server and sent to the browser
  • How you can use and customize the development environment
Ever since the first release of the .NET Framework 1.0 in early 2002, Microsoft has put a lot of effort and development time into ASP.NET, the part of the .NET Framework that enables you to build rich web applications. This first release meant a radical change from the older Microsoft technology to build websites called Active Server Pages (ASP), now often referred to as classic ASP. The introduction of ASP.NET 1.0 and the associated Visual Studio .NET gave developers the following benefits over classic ASP:
  • A clean separation between presentation and code. With classic ASP, your programming logic was often scattered throughout the HTML of the page, making it hard to make changes to the page later.
  • A development model that was much closer to the way desktop applications are programmed. This made it easier for the many Visual Basic desktop programmers to make the switch to web applications.
  • A feature-rich development tool (called Visual Studio .NET) that enabled developers to create and code their web applications visually.
  • A choice between a number of object-oriented programming (OOP) languages, of which Visual Basic .NET and C# (pronounced as C-Sharp) are now the most popular.
  • Access to the entire .NET Framework, which for the first time meant that web developers had a unified and easy way to access many advanced features to work with databases, files, e-mail, networking tools, and much more.
Despite the many advantages of ASP.NET over the older model, using ASP.NET also meant an increase in complexity and the knowledge needed to build applications with it, making it harder for many new programmers to get started with ASP.NET.
After the initial release in 2002, Microsoft released another version of the .NET Framework (called .NET 1.1) and the development IDE (called Visual Studio .NET 2003). Many people saw this as a service pack for the initial release, although it also brought a lot of new enhancements in both the framework and the development tools.
In November 2005, Visual Studio 2005 and ASP.NET 2.0 were released. To the pleasant surprise of many developers around the world, Microsoft had again been able to drastically improve and expand the product, adding many features and tools that helped reduce the complexity that was introduced with ASP.NET 1.0. New wizards and smart controls made it possible to reduce the code required to build an application, decreasing the learning curve for new developers and increasing their productivity.
In November 2007, Microsoft released Visual Studio 2008 and the ASP.NET 3.5 framework, followed by Visual Studio 2010 and ASP.NET 4 in March 2010. Both versions added a lot of new functionality, including LINQ (discussed in Chapter 14), the integration of the AJAX Framework (which you learn more about in Chapter 10), the ADO.NET Entity Framework (discussed in Chapter 14), the inclusion of jQuery (discussed in Chapter 11), and more.
The current versions, Visual Studio 2012 and ASP.NET 4.5, build on top of the successful Visual Studio 2010 and ASP.NET 4 releases, leaving many of the beloved features in place while adding new features and tools in other areas.
Over the next 19 chapters, you learn how to build full-featured ASP.NET websites using Visual Studio Express 2012 for Web, Microsoft's free development tool for ASP.NET web applications, which is also part of the full Visual Studio 2012 suite. This book guides you through the process of creating a fully functional, database-driven website, starting with a bare-bones website in the next chapter, all the way down to the deployment of it to a production environment in Chapter 19.
The sample site that comes with this book and all the examples are built with Visual Studio Express 2012 for Web (VSEW), so it's important that you have it installed on your development machine. The next section shows you how to acquire and install VSEW. Once you have it up and running, you see how to create your first website, followed by an extensive tour through the many features of VSEW.

Microsoft Visual Studio Express for Web

Although you could theoretically write ASP.NET web applications with Notepad or another text editor alone, you really want to install a copy of Microsoft Visual Studio (VS). VS hosts an enormous number of tools that will help you in rapidly creating complex ASP.NET web applications.
Visual Studio comes in two flavors: as a standalone and free version called Microsoft Visual Studio Express 2012 for Web, and as part of the larger development suite called Visual Studio 2012, which is also available in different editions, each with its own price tag. With the commercial editions of Visual Studio, the web components are fully integrated. You just start Visual Studio 2012 and then create a Web Site Project or a Web Application Project, which in turn enables the web components of Visual Studio.
Although the Express edition of Visual Studio is free, it contains all the features and tools you need to create complex and feature-rich web applications. All the examples you find in the book can be built with the free Express edition, so there's no need to shell out big bucks for the commercial versions of Visual Studio 2012 to follow along with this book.
I'll use the term Visual Studio (VS) to refer to both the commercial and free versions of Visual Studio. When talking about the free edition specifically, I'll use the terms Express edition or Visual Studio Express 2012 (VSEW).
Getting Visual Studio is easy. You can download it from the Microsoft site as discussed next.

Getting Visual Studio

You can get the free Visual Studio Express 2012 for Web from the Microsoft site at www.microsoft .com/express/. On the Express homepage, follow the Downloads link until you reach the page that offers the downloads for the Express products, including VSEW. From this page, you can download VSEW as a Web Install, where you download only the installer, while the remaining files are downloaded during the installation process. Make sure you choose Visual Studio Express 2012 for Web from the page, and not one of the other free Express products or one of the older editions of Visual Studio.
Don't be fooled by the file size of the Web Install download, which is just a few megabytes. The file you download is just the installer that downloads the required files over the Internet. The total download depends on your current system and will be somewhere between 180 MB and 270 MB.
If you want to try out the full version of Visual Studio 2012, which also contains the web components, you can sign up for a free trial on the Microsoft site at http://msdn.microsoft.com/vstudio. You can choose to download an ISO image that you'll need to burn on a DVD or choose to download the Web Installer.
Finally, you can download VSEW with the Microsoft Web Platform Installer (WPI) application available for download at www.microsoft.com/web/platform and at www.asp.net/downloads/. Besides VSEW, this tool also gives you easy access to many other web development–related tools and programs. The WPI is an excellent tool to get a whole bunch of web development–related programs and tools in one fell swoop. I often use it to get up and running real quick on a clean development machine.

Installing Visual Studio Express (VSEW)

Installing VSEW is a straightforward, although somewhat lengthy, process. Depending on your installation method, your computer, and your Internet connection speed, installing VSEW may take anywhere between 20 minutes and an hour — or even more.
Try It Out: Installing Visual Studio Express 2012 for Web
This Try It Out exercise guides you through installing VSEW on your computer. It assumes you're using the Web Platform Installer option as explained earlier, although the process for installing the Express edition from a DVD is almost identical. The steps you need to perform to install the full versions of Visual Studio 2012 are similar as well, although the screens you'll see will be somewhat different.
No matter how you install VSEW, it's important that you also install Microsoft SQL Express LocalDB Edition 11.0 — a required component if you want to follow along with many of this book's examples. It should be installed automatically when you install VSEW, but in case it's not installed, you'll find instructions at the end of this exercise to make sure it's properly installed.
1. Start by browsing to www.microsoft.com/express/ and follow the instructions to download VSEW 2012. Mak...

Indice dei contenuti