ASP.NET jQuery Cookbook - Second Edition

Over 60 recipes for writing client script in ASP.NET 4.6 applications using jQuery
Preview in Mapt

ASP.NET jQuery Cookbook - Second Edition

Sonal Aneel Allana

Over 60 recipes for writing client script in ASP.NET 4.6 applications using jQuery

Quick links: > What will you learn?> Table of content

Mapt Subscription
FREE
$29.99/m after trial
eBook
$30.80
RRP $43.99
Save 29%
Print + eBook
$54.99
RRP $54.99
What do I get with a Mapt Pro subscription?
  • Unlimited access to all Packt’s 5,000+ eBooks and Videos
  • Early Access content, Progress Tracking, and Assessments
  • 1 Free eBook or Video to download and keep every month after trial
What do I get with an eBook?
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with Print & eBook?
  • Get a paperback copy of the book delivered to you
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with a Video?
  • Download this Video course in MP4 format
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
$0.00
$30.80
$54.99
$29.99 p/m after trial
RRP $43.99
RRP $54.99
Subscription
eBook
Print + eBook
Start 14 Day Trial

Frequently bought together


ASP.NET jQuery Cookbook - Second Edition Book Cover
ASP.NET jQuery Cookbook - Second Edition
$ 43.99
$ 30.80
Bootstrap for ASP.NET MVC - Second Edition Book Cover
Bootstrap for ASP.NET MVC - Second Edition
$ 31.99
$ 22.40
Buy 2 for $35.00
Save $40.98
Add to Cart

Book Details

ISBN 139781782173113
Paperback478 pages

Book Description

jQuery is a lightweight JavaScript library that has changed the landscape of client scripting in web applications. Developed by John Resig in 2006, it has taken the web by storm because of its cross-browser compatibility and the ability to get more done with less code. It has gained popularity with ASP.NET developers and is now distributed with Visual Studio and the NuGet package manager.

ASP.NET jQuery Cookbook explores the wide range of utilities that the jQuery library provides. It teaches you the nitty-gritty of plugging in these features in ASP.NET web applications. It covers every aspect of interfacing the library, right from downloading and including jQuery on web pages to selecting controls, handling events, and creating animations. This book also walks you through DOM traversal and manipulation in ASP.NET and then through visual effects and graphics in ASP.NET sites. It explores advanced features such as posting AJAX requests and writing plugins. It will provide you with all the information you need to use this library confidently with ASP.NET.

Table of Contents

Chapter 1: Getting Started with jQuery in ASP.NET
Introduction
Downloading jQuery from jQuery.com
Understanding CDN for jQuery
Using NuGet Package Manager to download jQuery
Adding jQuery to an empty ASP.NET web project using a script block
Adding jQuery to an empty ASP.NET web project using ScriptManager control
Adding jQuery to an ASP.NET Master Page
Adding jQuery programmatically to a web form
Understanding jQuery reference in the default web application template
Hello World in a web project using jQuery
Bundling jQuery in ASP.NET MVC
Using CDN to load jQuery in MVC
Hello World in ASP.NET MVC using jQuery
Debugging jQuery code in Visual Studio
Chapter 2: Using jQuery Selectors with ASP.NET Controls
Introduction
Selecting a control using ID and displaying its value
Selecting a control using the CSS class
Selecting a control using HTML tag
Selecting a control by its attribute
Selecting an element by its position in the DOM
Enabling/disabling controls on a web form
Using selectors in MVC applications
Chapter 3: Event Handling Using jQuery
Introduction
Responding to mouse events
Responding to keyboard events
Responding to form events
Using event delegation to attach events to future controls
Running an event only once
Triggering an event programmatically
Passing data with events and using event namespacing
Detaching events
Chapter 4: DOM Traversal and Manipulation in ASP.NET
Introduction
Adding/removing DOM elements
Accessing parent and child controls
Accessing sibling controls
Refining selection using a filter
Adding items to controls at runtime
Chapter 5: Visual Effects in ASP.NET Sites
Introduction
Animating the Menu control
Animating a Label control to create a digital clock
Animating the alt text of the AdRotator control
Animating images in the TreeView control
Creating scrolling text in a Panel control
Creating a vertical accordion menu using Panel controls
Showing/hiding the GridView control with the explode effect
Chapter 6: Working with Graphics in ASP.NET Sites
Introduction
Creating a spotlight effect on images
Zooming images on mouseover
Creating an image scroller
Building a photo gallery using z-index property
Building a photo gallery using ImageMap control
Using images to create effects in the Menu control
Creating a 5 star rating control
Previewing image uploads in MVC
Chapter 7: Ajax Using jQuery
Introduction
Setting up Ajax with ASP.NET using jQuery
Consuming page methods
Consuming Web services
Consuming WCF services
Retrieving data from a Web API
Making Ajax calls to a controller action
Making Ajax calls to a HTTP handler
Chapter 8: Creating and Using jQuery Plugins
Introduction
Creating and using a simple plugin
Using the $ alias in the plugin
Calling methods on DOM elements
Providing default values
Providing method chaining
Adding actions to plugins
Using the form validation plugin
Downloading plugins using the NPM

What You Will Learn

  • Download and include jQuery in ASP.NET websites and MVC
  • Use jQuery selectors with ASP.NET server controls
  • Get to know about event handling and DOM traversal
  • Deploy jQuery for visual effects and animations
  • Develop AJAX-enabled ASP.NET applications
  • Create your own plugins
  • Solve common problems using less code and cut down your development time

Authors

Table of Contents

Chapter 1: Getting Started with jQuery in ASP.NET
Introduction
Downloading jQuery from jQuery.com
Understanding CDN for jQuery
Using NuGet Package Manager to download jQuery
Adding jQuery to an empty ASP.NET web project using a script block
Adding jQuery to an empty ASP.NET web project using ScriptManager control
Adding jQuery to an ASP.NET Master Page
Adding jQuery programmatically to a web form
Understanding jQuery reference in the default web application template
Hello World in a web project using jQuery
Bundling jQuery in ASP.NET MVC
Using CDN to load jQuery in MVC
Hello World in ASP.NET MVC using jQuery
Debugging jQuery code in Visual Studio
Chapter 2: Using jQuery Selectors with ASP.NET Controls
Introduction
Selecting a control using ID and displaying its value
Selecting a control using the CSS class
Selecting a control using HTML tag
Selecting a control by its attribute
Selecting an element by its position in the DOM
Enabling/disabling controls on a web form
Using selectors in MVC applications
Chapter 3: Event Handling Using jQuery
Introduction
Responding to mouse events
Responding to keyboard events
Responding to form events
Using event delegation to attach events to future controls
Running an event only once
Triggering an event programmatically
Passing data with events and using event namespacing
Detaching events
Chapter 4: DOM Traversal and Manipulation in ASP.NET
Introduction
Adding/removing DOM elements
Accessing parent and child controls
Accessing sibling controls
Refining selection using a filter
Adding items to controls at runtime
Chapter 5: Visual Effects in ASP.NET Sites
Introduction
Animating the Menu control
Animating a Label control to create a digital clock
Animating the alt text of the AdRotator control
Animating images in the TreeView control
Creating scrolling text in a Panel control
Creating a vertical accordion menu using Panel controls
Showing/hiding the GridView control with the explode effect
Chapter 6: Working with Graphics in ASP.NET Sites
Introduction
Creating a spotlight effect on images
Zooming images on mouseover
Creating an image scroller
Building a photo gallery using z-index property
Building a photo gallery using ImageMap control
Using images to create effects in the Menu control
Creating a 5 star rating control
Previewing image uploads in MVC
Chapter 7: Ajax Using jQuery
Introduction
Setting up Ajax with ASP.NET using jQuery
Consuming page methods
Consuming Web services
Consuming WCF services
Retrieving data from a Web API
Making Ajax calls to a controller action
Making Ajax calls to a HTTP handler
Chapter 8: Creating and Using jQuery Plugins
Introduction
Creating and using a simple plugin
Using the $ alias in the plugin
Calling methods on DOM elements
Providing default values
Providing method chaining
Adding actions to plugins
Using the form validation plugin
Downloading plugins using the NPM

Book Details

ISBN 139781782173113
Paperback478 pages
Read More

Read More Reviews

Recommended for You

Bootstrap for ASP.NET MVC - Second Edition Book Cover
Bootstrap for ASP.NET MVC - Second Edition
$ 31.99
$ 22.40
Entity Framework Core Cookbook - Second Edition Book Cover
Entity Framework Core Cookbook - Second Edition
$ 39.99
$ 28.00
JavaScript for .NET Developers Book Cover
JavaScript for .NET Developers
$ 39.99
$ 28.00
Learning ASP.NET Core MVC Programming Book Cover
Learning ASP.NET Core MVC Programming
$ 35.99
$ 25.20
Mastering C# and .NET Framework Book Cover
Mastering C# and .NET Framework
$ 35.99
$ 25.20
C# Programming Cookbook Book Cover
C# Programming Cookbook
$ 39.99
$ 28.00