ASP.NET jQuery Cookbook


ASP.NET jQuery Cookbook
eBook: $26.99
Formats: PDF, PacktLib, ePub and Mobi formats
$22.94
save 15%!
Print + free eBook + free PacktLib access to the book: $71.98    Print cover: $44.99
$44.99
save 37%!
Free Shipping!
UK, US, Europe and selected countries in Asia.
Also available on:
Overview
Table of Contents
Author
Reviews
Support
Sample Chapters
  • Tips and tricks for interfacing the jQuery library with ASP.NET controls
  • Boost ASP.NET applications with the power of jQuery
  • Use a problem-solution based approach with hands-on examples for ASP.NET developers
  • Step-by-step guide with plenty of code snippets and screen images
  • Simple, effective, and easy-to-follow recipes

Book Details

Language : English
Paperback : 308 pages [ 235mm x 191mm ]
Release Date : April 2011
ISBN : 1849690464
ISBN 13 : 9781849690461
Author(s) : Sonal Aneel Allana
Topics and Technologies : All Books, Web Development, Cookbooks, jQuery, .NET

Table of Contents

Preface
Chapter 1: Working with ASP.NET Controls
Chapter 2: Validation of ASP.NET Controls
Chapter 3: Working with GridView Control
Chapter 4: Working with Image Control
Chapter 5: Animations in ASP.NET
Chapter 6: AJAX and ASP.NET (Part I)
Chapter 7: AJAX and ASP.NET (Part II)
Chapter 8: Client Templating in jQuery
Index
  • Chapter 1: Working with ASP.NET Controls
    • Introduction
    • Creating default text for TextBoxes
    • Auto focus on the first TextBox and tab on the Enter key
    • Disallowing cut/copy/paste operations on a TextBox
    • Highlighting text in a TextBox and copying to the clipboard
    • Displaying selected items of a CheckBoxList
    • Selecting/deselecting all items in CheckBoxList
    • Getting selected text and value from DropDownList
    • Appending items at runtime to a DropDownList
    • Creating 'Back to Top' ASP.NET hyperlink
    • Updating URL of ASP.NET hyperlink at runtime
    • Chapter 2: Validation of ASP.NET Controls
      • Introduction
      • Getting started
      • Validation of a sample user login form
      • Validation of basic field types in a user profile form
      • Character limit validation in Multiline ASP.NET TextBox
      • Validation of date range in ASP.NET Form
      • Validation of ASP.NET CheckBoxList
      • Validation of ASP.NET RadioButtonList
      • Validation of ASP.NET ListBox Control
      • Validation of ASP.NET DropDownList Control
      • Chapter 3: Working with GridView Control
        • Introduction
        • Highlighting rows/cells of a GridView on hover
        • Removing GridView rows/cells on click
        • Removing a GridView column on clicking the header
        • Dragging and dropping GridView rows
        • Changing cursor style for selective rows of a GridView
        • Formatting a GridView and applying animation effect
        • Retrieving the content of a GridView cell on click
        • Chapter 4: Working with Image Control
          • Introduction
          • Adding/removing hyperlinks on images
          • Displaying image captions
          • Changing image opacity on mouseover
          • Viewing enlarged images on mouseover on thumbnail
          • Swapping images on a page
          • Cropping images on a page
          • Creating an image gallery viewer
          • Zooming images on mouseover
          • Chapter 5: Animations in ASP.NET
            • Introduction
            • Enlarging text on hover
            • Creating a fade effect on hover
            • Sliding elements on a page
            • Preventing animation queue buildup
            • Animating a panel
            • Chaining animations together
            • Hiding and displaying panels
            • Creating disappearing effect
            • Chapter 6: AJAX and ASP.NET (Part I)
              • Introduction
              • Setting up AJAX with ASP.NET using jQuery
              • Using Firebug to view AJAX request/response
              • Consuming page methods with AJAX
              • Consuming web services with AJAX
              • Populating ASP.NET DropDownList using AJAX
              • Creating an auto complete search box
              • Chapter 7: AJAX and ASP.NET (Part II)
                • Introduction
                • Displaying a progress indicator during AJAX calls
                • Reading XML data with AJAX
                • Catching and displaying AJAX errors
                • Using AJAX to load scripts in web pages
                • Cross site AJAX querying using jQuery
                • Using complex data types with AJAX
                • Chapter 8: Client Templating in jQuery
                  • Introduction
                  • Using jQuery Templates to display data
                  • Displaying arrays using nested templates
                  • Calling JavaScript functions and conditional statements in templates
                  • Creating an ASP.NET CheckBoxList in templates
                  • Using templates to format data returned from web services
                  • Using callback functions with jQuery templates
                  • Calling external templates using jQuery

                  Sonal Aneel Allana

                  Sonal Aneel Allana is a Senior Technical Consultant with Accentiv' SurfGold, Singapore. She has over a decade of experience in building web and desktop solutions in Microsoft technologies. She has worked with government agencies, credit bureaus, banks, financial institutions, and multinationals, delivering high-end customized solutions to meet their needs. She has worked on applications ranging from core banking software and B2B links to content management, workflow, and loyalty engines. From time to time, she has also taken up the role of project lead and has carried numerous projects from conceptualization through implementation successfully. In addition to her experience in Microsoft technologies, she is well versed in the J2EE and LAMP platforms. She holds a Master's degree in Computer Science from the National University of Singapore and a Bachelor's degree in Computer Engineering from Mumbai University. She is also passionate about network and data security and has a certificate in Security Technology and Management from the Institute of Systems Science, National University of Singapore.

                  Code Downloads

                  Download the code and support files for this book.


                  Submit Errata

                  Please let us know if you have found any errors not listed on this list by completing our errata submission form. Our editors will check them and add them to this list. Thank you.


                  Errata

                  - 1 submitted: last submission 31 Jul 2013

                  Errata type: Technical | Errata date: July 21

                  There is an error in recipe 02 of Chapter 01. The given code is as follows: When we click enter on the last textbox it will show an error. Change the code as follows and create errordata:

                   

                  Sample chapters

                  You can view our sample chapters and prefaces of this title on PacktLib or download sample chapters in PDF format.

                  Frequently bought together

                  ASP.NET jQuery Cookbook +    Entity Framework 4.1: Expert’s Cookbook =
                  50% Off
                  the second eBook
                  Price for both: £28.05

                  Buy both these recommended eBooks together and get 50% off the cheapest eBook.

                  What you will learn from this book

                  • Learn to use jQuery's formidable power with ASP.NET controls
                  • Implement impressive animations using client script
                  • Explore interesting graphic applications using the Image control
                  • Interface jQuery with the GridView control
                  • Develop feature-rich and responsive AJAX-enabled ASP.NET applications
                  • Use Firebug to work with AJAX request / response dialogs
                  • Post AJAX requests to page methods, web services, and HTTP Handlers
                  • Use various jQuery plugins to enhance your web applications
                  • Build simple and effective applications using client templating
                  • Develop rich web content using client scripting

                  In Detail

                  jQuery is a powerful, lightweight JavaScript library that simplifies various web development tasks. With the integration of jQuery with Visual Studio 2010, it has become increasingly popular for ASP.NET developers to use jQuery's awesome power in their applications. Combining jQuery and ASP.NET creates applications that are anything but lightweight. Using this Cookbook you will become adept at using this library in your ASP.NET web applications.

                  This cookbook shares the most powerful, impressive, and just plain handy jQuery secrets for ASP.NET developers. From substitute server-side code to corresponding client script, it shows ASP.NET developers how to get the most from jQuery in a simple, effective, and easy manner.

                  The cookbook takes a pragmatic approach in applying the jQuery library to ASP.NET applications. It will help you to master the use of jQuery with ASP.NET by taking you step-by-step through hands-on, practical recipes. With its help, you can learn to manipulate various ASP.NET controls like TextBox, CheckBoxList, DropDownList, BulletedList, Hyperlink, Image, and GridView as well as custom user controls. The book teaches client validation techniques thus providing a substitute for the server-side Validation Control. It explores various graphic and animation effects that can be accomplished very easily with the library to give a better interactive experience to the end user. It explores AJAX in depth and describes the use of Firebug to view / troubleshoot the corresponding request / response dialog. You will also learn to develop rich content using client scripting.

                  A practical, hands-on guide for exploiting the power of jQuery in ASP.NET applications

                  Approach

                  Written in a cookbook style, this book offers solutions using a recipe-based approach. Each recipe contains step-by-step instructions followed by an analysis of what was done in each task and other useful information. The cookbook approach means you can dive into whatever recipes you want in no particular order.

                  Who this book is for

                  This book is for ASP.NET developers who want to learn ASP.NET and jQuery integration. The book assumes you have prior experience of developing web applications using ASP.NET, C#, Visual Studio, and jQuery. As this book targets readers of various experience levels, you will find useful recipes regardless of your skill level.

                  Code Download and Errata
                  Packt Anytime, Anywhere
                  Register Books
                  Print Upgrades
                  eBook Downloads
                  Video Support
                  Contact Us
                  Awards Voting Nominations Previous Winners
                  Judges Open Source CMS Hall Of Fame CMS Most Promising Open Source Project Open Source E-Commerce Applications Open Source JavaScript Library Open Source Graphics Software
                  Resources
                  Open Source CMS Hall Of Fame CMS Most Promising Open Source Project Open Source E-Commerce Applications Open Source JavaScript Library Open Source Graphics Software