Buy Beginning ASP.NET for Visual Studio 2015 by William Penberthy
Book 1
Book 2
Book 3
Book 1
Book 2
Book 3
Book 1
Book 2
Book 3
Book 1
Book 2
Book 3
Home > Computing and Information Technology > Computer programming / software engineering > Web programming > Beginning ASP.NET for Visual Studio 2015
Beginning ASP.NET for Visual Studio 2015

Beginning ASP.NET for Visual Studio 2015


     0     
5
4
3
2
1



International Edition


X
About the Book

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.



Table of Contents:

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 Project–Based 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

Razor 166

Controller 170

Routing 172

HTTP Verbs and Attributes 174

Form-Building Helpers 175

Form Extensions 175

Editor and EditorFor 177

Model Binding 177

Summary 194

CHAPTER 7: CREATING CONSISTENT-LOOKING WEBSITES 197

Consistent Page Layout with Master Pages 198

Creating and Using Master Pages in ASP.NET Web Forms 198

Creating a Content Page in ASP.NET Web Forms 208

Creating Layouts in ASP.NET MVC 212

Creating a Content View in ASP.NET MVC 215

Using a Centralized Base Page 219

Summary 225

CHAPTER 8: NAVIGATION 229

Different Ways to Move around Your Site 230

Understanding Absolute and Relative URLs 230

Understanding Default Documents 234

Friendly URLs 234

Using the ASP.NET Web Forms Navigation Controls 236

Using the Menu Control 240

Navigating in ASP.NET MVC 248

Routing 248

Default Configuration and Route 249

Creating a Navigational Structure 252

Programmatic Redirection 255

Programmatically Redirecting the Client to a Different Page 255

Server-Side Redirects 258

Practical Tips on Navigation 262

Summary 263

CHAPTER 9: DISPLAYING AND UPDATING DATA 267

Working with SQL Server Express 268

Installation 269

SQL Server Management Studio 276

Connecting in Visual Studio 282

Entity Framework Approach to Data Access 285

Data First 285

Code First 286

Selecting Data from the Database 295

Data Controls in Web Forms 297

Details View 297

Web Form GridView 303

Data Display in MVC 310

List Display in MVC 311

Details Views 314

Summary 318

CHAPTER 10: WORKING WITH DATA—ADVANCED TOPICS 323

Sorting and Pagination 324

Sorting and Pagination in Web Form Server Controls 324

Sorting and Pagination in MVC Lists 330

Updating and/or Inserting Data 339

A Non-Code First Approach to Database Access 347

Using SQL Queries and Stored Procedures 350

Caching 358

Different Ways to Cache Data in ASP.NET Applications 358

Common Pitfalls with Caching Data 362

Summary 363

CHAPTER 11: USER CONTROLS AND PARTIAL VIEWS 367

Introduction to User Controls 368

Creating User Controls 369

Adding User Controls 373

Sitewide Registration of a User Control 376

Managing the IDs of Any Controls 379

Adding Logic to Your User Controls 381

Using Partial Views 387

Adding a Partial View 389

Managing the Controller for a Partial View 393

Templates 400

Summary 408

CHAPTER 12: VALIDATING USER INPUT 413

Gathering Data from the User 414

Validating User Input in Web Forms 415

Understanding Request Validation 424

Validating User Input in MVC 426

Model Attribution 426

Client-Side Validation 434

Request Validation in ASP.NET MVC 443

Validation Tips 444

Summary 445

CHAPTER 13: ASP.NET AJAX 449

Introducing the Concept of AJAX 450

F12 Developer Tools 451

Using ASP.NET AJAX in Web Forms 457

The Initial AJAX Experience 457

Enhancing the AJAX Experience 466

Using AJAX in MVC 469

Using Web Services in AJAX Websites 483

jQuery in AJAX 489

Practical AJAX Tips 495

Summary 496

CHAPTER 14: jQUERY 499

An Introduction to jQuery 499

Early JavaScript 500

jQuery’s Role 500

Including the jQuery Library 503

Bundles 506

jQuery Syntax 512

jQuery Core 513

Working with the jQuery Utility Methods 514

Selecting Items Using jQuery 516

Modifying the DOM with jQuery 519

Changing Appearance with jQuery 519

Handling Events 523

Debugging jQuery 532

Practical Tips on jQuery 536

Summary 537

CHAPTER 15: SECURITY IN YOUR ASP.NET WEBSITE 541

Introducing Security 542

Identity: Who Are You? 542

Authentication: How Can Users Prove Who They Are? 542

Authorization: What Are You Allowed to Do? 543

Logging in with ASP.NET 543

Confi guring Your Web Application for Security 547

Working with Users within Your Application 558

Roles 566

Configuring Your Application to Work with Roles 567

Programmatically Checking Roles 572

Practical Security Tips 576

Summary 576

CHAPTER 16: PERSONALIZING WEBSITES 581

Understanding the Profile 582

Creating the Profile 582

Using the Profile 590

Practical Personalization Tips 602

Summary 603

CHAPTER 17: EXCEPTION HANDLING, DEBUGGING, AND TRACING 605

Error Handling 606

Different Types of Errors 606

Syntax Errors 606

Logic Errors 607

Runtime Errors 609

Catching and Handling Exceptions 612

Global Error Handling and Custom Error Pages 621

Error Handling in a Controller 627

The Basics of Debugging 629

Tools Support for Debugging 629

Moving Around in Debugged Code 629

Debugging Windows 631

Other Windows 634

Debugging Client-Side Script 638

Tracing Your ASP.NET Web Pages 647

Adding Your Own Information to the Trace 650

Tracing and Performance 654

Logging 654

Downloading, Installing, and Configuring a Logger 655

Summary 658

CHAPTER 18: WORKING WITH SOURCE CONTROL 661

Introducing Team Foundation Services 661

Why Use Source Control 662

Setting Up a Visual Studio Online Account 662

Checking Code In and Out 669

Undoing Changes 670

Shelvesets 672

Getting a Specific Version from the Server 672

Seeing Changed Items in Solution Explorer 675

Looking at History and Comparing Versions 675

Labeling 676

Interacting with a Team 677

Changing Default Source Control Behavior in Visual Studio 677

Branching and Merging 678

Summary 681

CHAPTER 19: DEPLOYING YOUR WEBSITE 683

Preparing Your Website for Deployment 684

Avoiding Hard-Coded Settings 684

The Web.config File 685

Expression Syntax 685

The Web Configuration Manager Class 687

Preparing for Deployment 691

Microsoft Azure 691

Publishing Your Site 695

Introducing Web.config Transformations 706

Moving Data to a Remote Server 713

Smoke Testing Your Application 720

Going Forward 722

Summary 722

Appendix: answers to exercises 725

Index 735



About the Author :

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.


Best Sellers


Product Details
  • ISBN-13: 9781119077428
  • Publisher: John Wiley & Sons Inc
  • Publisher Imprint: Wrox Press
  • Height: 234 mm
  • No of Pages: 800
  • Returnable: N
  • Weight: 1364 gr
  • ISBN-10: 1119077427
  • Publisher Date: 26 Feb 2016
  • Binding: Paperback
  • Language: English
  • Returnable: N
  • Spine Width: 48 mm
  • Width: 188 mm


Similar Products

Add Photo
Add Photo

Customer Reviews

REVIEWS      0     
Click Here To Be The First to Review this Product
Beginning ASP.NET for Visual Studio 2015
John Wiley & Sons Inc -
Beginning ASP.NET for Visual Studio 2015
Writing guidlines
We want to publish your review, so please:
  • keep your review on the product. Review's that defame author's character will be rejected.
  • Keep your review focused on the product.
  • Avoid writing about customer service. contact us instead if you have issue requiring immediate attention.
  • Refrain from mentioning competitors or the specific price you paid for the product.
  • Do not include any personally identifiable information, such as full names.

Beginning ASP.NET for Visual Studio 2015

Required fields are marked with *

Review Title*
Review
    Add Photo Add up to 6 photos
    Would you recommend this product to a friend?
    Tag this Book Read more
    Does your review contain spoilers?
    What type of reader best describes you?
    I agree to the terms & conditions
    You may receive emails regarding this submission. Any emails will include the ability to opt-out of future communications.

    CUSTOMER RATINGS AND REVIEWS AND QUESTIONS AND ANSWERS TERMS OF USE

    These Terms of Use govern your conduct associated with the Customer Ratings and Reviews and/or Questions and Answers service offered by Bookswagon (the "CRR Service").


    By submitting any content to Bookswagon, you guarantee that:
    • You are the sole author and owner of the intellectual property rights in the content;
    • All "moral rights" that you may have in such content have been voluntarily waived by you;
    • All content that you post is accurate;
    • You are at least 13 years old;
    • Use of the content you supply does not violate these Terms of Use and will not cause injury to any person or entity.
    You further agree that you may not submit any content:
    • That is known by you to be false, inaccurate or misleading;
    • That infringes any third party's copyright, patent, trademark, trade secret or other proprietary rights or rights of publicity or privacy;
    • That violates any law, statute, ordinance or regulation (including, but not limited to, those governing, consumer protection, unfair competition, anti-discrimination or false advertising);
    • That is, or may reasonably be considered to be, defamatory, libelous, hateful, racially or religiously biased or offensive, unlawfully threatening or unlawfully harassing to any individual, partnership or corporation;
    • For which you were compensated or granted any consideration by any unapproved third party;
    • That includes any information that references other websites, addresses, email addresses, contact information or phone numbers;
    • That contains any computer viruses, worms or other potentially damaging computer programs or files.
    You agree to indemnify and hold Bookswagon (and its officers, directors, agents, subsidiaries, joint ventures, employees and third-party service providers, including but not limited to Bazaarvoice, Inc.), harmless from all claims, demands, and damages (actual and consequential) of every kind and nature, known and unknown including reasonable attorneys' fees, arising out of a breach of your representations and warranties set forth above, or your violation of any law or the rights of a third party.


    For any content that you submit, you grant Bookswagon a perpetual, irrevocable, royalty-free, transferable right and license to use, copy, modify, delete in its entirety, adapt, publish, translate, create derivative works from and/or sell, transfer, and/or distribute such content and/or incorporate such content into any form, medium or technology throughout the world without compensation to you. Additionally,  Bookswagon may transfer or share any personal information that you submit with its third-party service providers, including but not limited to Bazaarvoice, Inc. in accordance with  Privacy Policy


    All content that you submit may be used at Bookswagon's sole discretion. Bookswagon reserves the right to change, condense, withhold publication, remove or delete any content on Bookswagon's website that Bookswagon deems, in its sole discretion, to violate the content guidelines or any other provision of these Terms of Use.  Bookswagon does not guarantee that you will have any recourse through Bookswagon to edit or delete any content you have submitted. Ratings and written comments are generally posted within two to four business days. However, Bookswagon reserves the right to remove or to refuse to post any submission to the extent authorized by law. You acknowledge that you, not Bookswagon, are responsible for the contents of your submission. None of the content that you submit shall be subject to any obligation of confidence on the part of Bookswagon, its agents, subsidiaries, affiliates, partners or third party service providers (including but not limited to Bazaarvoice, Inc.)and their respective directors, officers and employees.

    Accept


    Inspired by your browsing history


    Your review has been submitted!

    You've already reviewed this product!