1324 HTML5 programming for ASP NET developers

379 140 0
1324 HTML5 programming for ASP NET developers

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

Thông tin tài liệu

... of HTML5 and ASP. NET 4.5 CSS3 Strictly speaking, CSS3 isn’t a direct feature of HTML5 but is evolving along with HTML5 It’s worthwhile for any HTML5 and ASP. NET developer to know CSS3 ASP. NET developers. .. to perform basic tasks such as creating projects and debugging code Web Forms or MVC ASP. NET offers two options for developing web applications: ASP. NET Web Forms and ASP. NET MVC Using the HTML5. .. integration between HTML5 and ASP. NET Figure 1-10 HTML5 and ASP. NET interaction The ASP. NET server-side infrastructure sends HTML5 markup to the browser when a request is received The ASP. NET server-side

Ngày đăng: 11/07/2018, 17:00

Từ khóa liên quan

Mục lục

  • Cover

    • Contents at a Glance

    • Contents

    • About the Author

    • About the Technical Reviewer

    • Acknowledgments

    • Introduction

      • Who Is This Book For?

      • Web Forms or MVC

      • Software Required

      • Structure of This Book

      • Downloading the Source Code

      • Contacting the Author

  • Chapter 1 Overview of HTML5 and ASP.NET 4.5

    • History of HTML5

    • HTML5 Page Structure

    • A Quick Look at HTML5-specific Tags

    • HTML5 Features of Interest

      • Audio and Video

      • Canvas

      • History API

      • Web Storage

      • Offline Web Applications

      • File API

      • Web Workers

      • Web Sockets

      • Geolocation

      • CSS3

    • HTML5 and Browser Support

      • Checking for HTML5 Support Statically

      • Checking for HTML5 Support Dynamically

    • HTML5 and ASP.NET

    • Features of the Visual Studio HTML Editor

      • HTML Formatting

      • IntelliSense and Validations for HTML5 Tags

      • HTML5 Snippets

      • Automatically Renaming End Tags

      • JavaScript IntelliSense

      • Testing a Web Page in a Specific browserTesting

    • Sample Web Applications

      • A Simple ASP.NET Web Forms–based Web Application Using HTML5

      • A Simple ASP.NET MVC-Based Web Site Using HTML5

    • Summary

  • Chapter 2 Overview of jQuery

    • What Is jQuery?

      • jQuery Is a JavaScript Library

      • jQuery Is Fast and Concise

      • jQuery Simplifies Traversing HTML Documents, Event Handling, Animation, and Ajax Interactions

      • jQuery Is Designed to Change the Way You Write JavaScript

    • Downloading and Referring to jQuery

    • Event Handling

      • Event Wiring Using the bind() Method

    • jQuery Selectors

      • Selecting Elements Based on ID, Tag Name, and CSS Class

      • Selecting Elements Based on Their Attribute Value

      • Selecting Form Elements

    • Modifying the DOM Using jQuery

    • jQuery Ajax Techniques

      • Using the jQuery $.ajax() Method in a Web Forms Application

      • Using the jQuery $.ajax() Method in an MVC Application

    • Summary

  • Chapter 3 Working with Audio and Video

    • Embedding Media Files Using the <object> Tag

      • Embedding Audio Files

      • Embedding Flash Video Files

      • Embedding Silverlight Video Files

    • HTML5 Audio and Video Tags

      • Playing Audio

      • Playing Video

    • Supported Audio and Video Formats

    • Implementing a Fallback Mechanism

      • Supporting Multiple Media Formats

      • Flash or Silverlight Fallback

    • Programming with the Audio and Video APIs

    • Creating a Custom Video Player Using the Video API

      • HTML5 Markup

      • SQL Server Database and Entity Framework Data Model

      • Fetching the Video Playlist

      • Playing, Pausing, and Stopping a Video

      • Displaying Duration and Progress

    • Summary

  • Chapter 4 Drawing with the Canvas

    • The <canvas> Element

    • Drawing on the Canvas

    • Drawing Lines

      • Changing the Line Width and Cap

    • Drawing Curves

      • A Quick Introduction to Radians

      • Drawing an Arc Using the arc() Method

    • Drawing Paths

    • Drawing Text

    • Drawing Images

    • Adding Special Effects

      • Shadows

      • Transparency

      • Gradient Filling

      • Pattern Filling

    • Saving the Canvas State

      • Using the save() and restore() Methods

    • Saving the Canvas Drawing

      • Using the toDataURL() Method

      • Saving the Canvas Drawing in an <img> Object

      • Saving the Canvas Drawing in SQL Server

      • Saving the Canvas Drawing as an Image File on the Server

    • Creating Pie Charts Using Canvas Drawing Techniques

      • SQL Server Database

      • MVC Controller

      • MVC View

      • Adding Chart Data

      • Drawing a Pie Chart

      • Saving a Pie Chart

    • Summary

  • Chapter 5 Working with Forms and Controls

    • Understanding HTML Forms in ASP.NET

      • The <form> Element in ASP.NET Web Forms

      • The <form> Element in ASP.NET MVC

    • HTML5 Controls

    • Using HTML5-Specific Input Types

      • E-mail Addresses

      • URLs

      • Numbers and Telephone Numbers

      • Range Selectors

      • Dates and Times

      • Colors

      • Search

      • Using the New Input Types in Web Forms

      • Using the New Input Types in MVC Views

    • Other Validation Attributes

      • Dealing with Required Fields

      • Pattern-Matching Using Regular Expressions

      • Turning HTML5 Validations On and Off

    • Performing Custom Validations

    • HTML5 Input Types and ASP.NET Validation Techniques

      • HTML5 Input Types and Validation Controls

      • HTML5 Input Types and Server-Side Validations in an MVC Application

      • HTML5 Input Types and Unobstructive Validation

    • Customizing Validation Messages

      • Customizing the Appearance of an Input Field Using CSS Pseudo-Classes

      • Customizing Validation Messages Through Code

    • Other Improvements to the <input> Element

      • Setting Autofocus

      • Displaying Help Text Using Placeholders

      • Enabling Spell-Check

      • Turning Off Autocomplete

      • Providing a Drop-Down List

      • Setting a Form’s Action and Method

    • Designing an Employee Data Form

      • Configuring the FormView Control

      • Using HTML5 Input Types and Related Attributes

      • Taking Care of Date Formatting

      • Writing the CRUD Methods

      • jQuery Code

      • CSS Pseudo-Classes

    • Designing a User Registration Form

      • Entity Framework Data Model and Data Annotations

      • User Controller

      • Displaying the User Registration Form in an MVC View

      • Checking for Duplicate Display Names and E-mail Addresses

      • Comparing the Password and Confirm Password Fields

      • Handling the invalid Event and Displaying Validation Errors

    • Summary

  • Chapter 6 Using History API and Custom Data Attributes

    • The History Object

    • Understanding the History-Tracking Problem

      • Effect on Browser Bookmarks

      • Effect on Search Engine Listings

    • The Solution

      • Using Hash Fragment in URLs

      • HTML5 History API

    • Understanding the History API

    • Browser Support

    • Custom Data Attributes

      • Overview of Custom Data Attributes

      • Accessing Custom Data Attributes Using JavaScript

      • Accessing Custom Data Attributes Using jQuery

      • Using Custom Data Attributes to Emit Validation Messages

    • Summary

  • Chapter 7 Storing Data in Web Storage

    • Overview of Web Storage

    • Session Storage and Local Storage Objects

    • Using the sessionStorage and localStorage Objects

    • Storing Numbers, Dates, and Objects

    • Session Storage and Local Storage Events

    • Clearing Web Storage Manually

    • Passing Data from Web Storage to the Server

    • An Example of Using Local Storage in a Survey Form

      • Passing Data as Hidden Form Field

    • Security Considerations for Web Storage

    • Summary

  • Chapter 8 Developing Offline Web Applications

    • When to Use Offline Applications

    • HTTP Caching and Offline Applications

    • Building an Offline Application

    • Creating a Cache Manifest

      • The CACHE Section of the Cache Manifest

      • The NETWORK Section of the Cache Manifest

      • The FALLBACK Section of the Cache Manifest

    • Referring to the Cache Manifest in Web Forms and Views

    • Configuring IIS to Recognize the Cache Manifest File

    • Testing an Offline Application

    • Going Online Using Ajax

    • Updating an Offline Application

    • Offline Application Events

    • ASP.NET MVC Example: the Survey Application Revisited

      • Creating a Cache Manifest File

      • Getting the Questions and Choices

      • Checking for a Network Connection

    • Summary

  • Chapter 9 Dealing with Local Files Using the File API

    • Understanding the File API

      • FileList Object

      • File Object

      • FileReader Object

    • Selecting Files to Be Used With the File API

      • Using a File Field to Select Files

      • Using a Custom Button to Select Files

      • Using Drag-and-Drop to Select Files

    • Working with Drag-and-Drop

      • Enable Dragging for HTML Elements

      • Drag-and-Drop Events

      • Transferring Data Between Drag-and-Drop Operations

    • Implementing Drag-and-Drop: A Shopping Cart

      • Entity Framework Data Model

      • Product Catalog and Shopping Cart

      • Handling Drag-and-Drop Events

    • Dragging and Dropping Files

    • Reading Files and Displaying File Information

    • Uploading Files to the Server

    • Using the File API in ASP.NET MVC

    • Summary

  • Chapter 10 Multithreading in Web Pages Using Web Workers

    • Overview of Multithreading in Web Pages

    • Types of Web Workers

    • What Web Workers Can Access and What They Can’t

    • Using Web Workers

    • Importing External Script Files

    • Handling Errors

    • Terminating Web Workers

    • Monitoring Web Workers During Development

    • Using Shared Web Workers

    • Communicating With the Server

    • Using Web Workers That Require Server-side Data

      • Order History View

      • Creating a Web Worker

      • Event Handlers for message and error Events

      • Code Running in the Web Worker

      • GetOrders() Action Method

    • Summary

  • Chapter 11 Using the Communication API and Web Sockets

    • Understanding Cross-Domain Communication

      • Cross-Document Messaging

      • Cross-Origin Resource Sharing (CORS)

    • Using the postMessage API

      • Using postMessage with <iframe>

      • Using postMessage with the window Object

    • Making Requests Using XMLHttpRequest

      • Properties of XMLHttpRequest

      • Methods of XMLHttpRequest

      • Events of XMLHttpRequest

      • Making Requests Using XMLHttpRequest

      • Uploading Files Using XMLHttpRequest

    • Notifying the Browser Using Server-Sent Events

    • Two-Way Communication Using Web Sockets

      • Understanding Web Sockets

      • The WebSocket Object

      • Using WebSocket in ASP.NET

      • Developing the Echo Server

      • Developing the Web Socket Client

    • Summary

  • Chapter 12 Finding Location with the Geolocation API

    • Overview of the Latitude and Longitude Coordinate System

    • Sources of Location Information

      • IP Address

      • GPS

      • Wi-Fi

      • Mobile Phones (GSM or CDMA)

    • The Geolocation API

      • Geolocation and User Privacy

    • Using the Geolocation API to obtain User’s Location

    • Using the Geolocation API with Mapping Applications

      • Integrating the Geolocation API with Google Maps

      • Integrating the Geolocation API with Bing Maps

    • Using the Geolocation API to Present Location-Specific Data

    • Tracking Movement Using the Geolocation API

    • Summary

  • Chapter 13 Styling Web Forms and Views with CSS3

    • CSS3 Selectors

      • Attribute-Substring Selectors

      • Structural Pseudo-Classes

      • Element-State Pseudo-Classes

      • Miscellaneous Pseudo-Classes

    • Browser-Specific Property Prefixes

    • Using Web Fonts

      • Web Font Formats

      • Using @font-face Rules

    • Rounded Corners, Shadows, Gradients, and Transparency

      • Rounded Corners

      • Shadows

      • Image Backgrounds

      • Gradients

      • Transparency

    • Adding Effects Using Transitions and Transforms

      • Transitions

      • Transforms

    • Using Media Queries to Target Different Devices

      • Changing a Style Sheet Using Media Queries

      • Changing a Style Rule Using Media Queries

    • Using Modernizr to Apply CSS3-Specific Features

    • Summary

  • Appendix A HTML5 Learning Resources

    • W3C and WHATWG Specifications

    • Documentation from Browser Companies

    • Other Web Sites of Interest

  • Index

Tài liệu cùng người dùng

  • Đang cập nhật ...

Tài liệu liên quan