CHF34.00
Download est disponible immédiatement
The complete guide to the productivity and performance enhancements in ASP.NET
Beginning ASP.NET for Visual Studio 2015 is your ultimate guide to the latest upgrade of this historically popular framework. Fully updated to align with the vNext release, this new edition walks you through the new tools and features that make your workflow smoother and your applications stronger. You'll get up to speed on the productivity and performance improvements, and learn how Microsoft has committed itself to more continuous innovation by increasing its release cadence for all products and services going forward. Coverage includes Async-aware debugging, ADO.NET idle connection resiliency, managed return value inspection, ASP.NET app suspension, on-demand large object heap compaction, multi-core JIT and more.
The news of an off-cycle update to ASP.NET came as a surprise, but its announcement garnered cheers at the 2014 Microsoft BUILD conference. This guide shows you what all the fuss is about, and how Microsoft overhauled the latest ASP.NET release.
Get acquainted with the new developer productivity features
Master the new tools that build better applications
Discover what's new in Windows Store app development
Learn how Microsoft fixed the issues that kept you from v5
Over 38 million websites are currently using ASP.NET, and the new upgrade is already leading to increased adoption. Programmers need to master v6 to remain relevant as web development moves forward. Beginning ASP.NET for Visual Studio 2015 walks you through the details, and shows you what you need to know so you can get up and running quickly.
Auteur
About the author
William Penberthy has specialized in the Microsoft software development stack since the initial deployment of .NET, performing client, service, and
web development in C# and VB.NET. He has directly participated in the development of over 135 different applications, ranging from record retention management software, to e-Commerce storefronts, to geographic information systems, to point-of-sale systems and many applications in between.
Contenu
INTRODUCTION xxi
CHAPTER 1: GETTING STARTED WITH ASP.NET 6.0 1
An Introduction to ASP.NET vNext 2
Hypertext Transfer Protocol (HTTP) 2
Microsoft Internet Information Services 5
HTML 5 5
HTML Markup 5
Attributes in HTML 7
HTML Example 8
ASP.NET Web Forms 10
ViewState 10
ASP.NET Web Forms Events and Page Lifecycle 11
Control Library 13
ASP.NET MVC 15
Testability 16
Full Control over Output 17
Web Forms and MVC Similarities 17
Choosing the Best Approach 17
Using Visual Studio 2015 18
Versions 18
Downloading and Installing 19
The Sample Application 23
Summary 24
CHAPTER 2: BUILDING AN INITIAL ASP.NET APPLICATION 27
Creating Websites with Visual Studio 2015 28
Available Project Types 28
Web Site ProjectBased Approach 28
Web Application Project 29
Creating a New Site 30
While Creating a Project 30
Empty Template 34
Web Forms Template 35
MVC Template 36
Web API Template 36
Single Page Application Template 37
Azure Mobile Service Template 38
Working with Files in Your Application 38
File Types of an ASP.NET MVC Application 38
File System Structure of an ASP.NET MVC Application 41
File Types of an ASP.NET Web Forms Application 43
MVC and Web Form File Differences 46
Creating the Sample Application 47
Summary 49
CHAPTER 3: DESIGNING YOUR WEB PAGES 51
HTML and CSS 52
Why Use Both HTML and CSS? 52
An Introduction to CSS 54
More CSS 58
Selectors 58
Properties 61
Precedence in Styles 65
The Style Sheet 67
Adding CSS to Your Pages 68
Creating Embedded and Inline Style Sheets 71
Applying Styles 72
Managing Styles 78
Summary 84
CHAPTER 4: PROGRAMMING IN C# AND VB.NET 87
Introduction to Programming 87
Data Types and Variables 88
Defi ning a Variable 88
Operators 91
Converting and Casting Data Types 93
Converting Data Types 93
Casting Data Types 96
Using Arrays and Collections 97
Using Arrays 97
Using Collections 99
Decision-Making Operations 101
Comparison Operators 102
Logical Operators 103
If Statement 104
Switch/Select Case Statement 106
Loops 106
For Loop 106
Foreach/For Each Loops 108
While Loop 109
Exiting Loops 110
Organizing Code 110
Methods: Functions and Subroutines 110
Writing Comments and Documentation 112
Object-Oriented Programming Basics 114
Important OO Terminology 115
Classes 115
Fields 116
Properties 117
Methods 120
Constructors 120
Inheritance 121
Events 123
Summary 125
CHAPTER 5: ASP.NET WEB FORM SERVER CONTROLS 129
Introduction to Server Controls 129
Defining Controls in Your Pages 130
Types of Controls 137
Standard Controls 138
HTML Controls 143
Data Controls 144
Validation Controls 144
Navigation Controls 145
Login Controls 145
AJAX Extensions 146
Other Control Sets 146
The ASP.NET State Engine 147
How the State Engine Works 148
Summary 157
CHAPTER 6: ASP.NET MVC HELPERS AND EXTENSIONS 161
Why MVC Has Fewer Controls Than Web Forms 162 A Different Approach 162</p&...