You are previewing ASP.NET jQuery Cookbook.
O'Reilly logo
ASP.NET jQuery Cookbook

Book Description

Overview of ASP.NET jQuery Cookbook

  • 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

  • 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

    Table of Contents

    1. ASP.NET jQuery Cookbook
      1. ASP.NET jQuery Cookbook
      2. Credits
      3. About the Author
      4. About the Reviewers
      5. www.PacktPub.com
        1. Support files, eBooks, discount offers and more
        2. Why Subscribe?
        3. Free Access for Packt account holders
      6. Preface
        1. What this book covers
        2. What you need for this book
        3. Who this book is for
        4. Conventions
        5. Reader feedback
        6. Customer support
          1. Downloading the example code
          2. Errata
          3. Piracy
          4. Questions
      7. 1. Working with ASP.NET Controls
        1. Introduction
          1. Downloading jQuery
          2. Including jQuery library
          3. Getting started
            1. Using Visual Studio 2010:
            2. Using Visual Studio 2008
            3. Usage of jQuery Library
        2. Creating default text for TextBoxes
          1. Getting ready
          2. How to do it…
          3. How it works…
          4. See also
        3. Auto focus on the first TextBox and tab on the Enter key
          1. Getting ready
          2. How to do it…
          3. How it works…
          4. See also
        4. Disallowing cut/copy/paste operations on a TextBox
          1. Getting ready
          2. How to do it…
          3. How it works…
          4. See also
        5. Highlighting text in a TextBox and copying to the clipboard
          1. Getting ready
            1. How to do it…
            2. How it works…
            3. There's more…
            4. See also
          2. Displaying selected items of a CheckBoxList
            1. Getting ready
            2. How to do it…
            3. How it works…
            4. See also
          3. Selecting/deselecting all items in CheckBoxList
            1. Getting ready
            2. How to do it…
            3. How it works…
            4. See also
          4. Getting selected text and value from DropDownList
            1. Getting ready
            2. How to do it…
            3. How it works…
            4. See also
          5. Appending items at runtime to a DropDownList
            1. Getting ready
            2. How to do it…
            3. How it works…
            4. There's more...
            5. See also
          6. Creating 'Back to Top' ASP.NET hyperlink
            1. Getting ready
            2. How to do it…
            3. How it works…
            4. See also
          7. Updating URL of ASP.NET hyperlink at runtime
            1. Getting ready
            2. How to do it…
            3. How it works…
            4. There's more...
            5. See also
      8. 2. Validation of ASP.NET Controls
        1. Introduction
        2. Getting started
          1. Usage of validation plugin
        3. Validation of a sample user login form
          1. Getting ready
          2. How to do it…
            1. How it works…
            2. See also
          3. Validation of basic field types in a user profile form
            1. Getting ready
            2. How to do it…
            3. How it works…
            4. See also
          4. Character limit validation in Multiline ASP.NET TextBox
            1. Getting ready
            2. How to do it…
            3. How it works…
            4. See also
          5. Validation of date range in ASP.NET Form
            1. Getting ready
            2. How to do it…
            3. How it works…
            4. See also
          6. Validation of ASP.NET CheckBoxList
            1. Getting ready
            2. How to do it…
            3. How it works…
            4. See also
          7. Validation of ASP.NET RadioButtonList
            1. Getting ready
            2. How to do it…
            3. How it works…
            4. See also
          8. Validation of ASP.NET ListBox Control
            1. Getting ready
            2. How to do it…
            3. How it works…
            4. See also
          9. Validation of ASP.NET DropDownList Control
            1. Getting ready
            2. How to do it…
            3. How it works…
            4. There's more…
            5. See also
      9. 3. Working with GridView Control
        1. Introduction
          1. Getting started
            1. Creating and populating the GridView Control
              1. Applying skin file to GridView
          2. Highlighting rows/cells of a GridView on hover
            1. Getting ready
            2. How to do it…
            3. How it works…
            4. There's more…
            5. See also
          3. Removing GridView rows/cells on click
            1. Getting ready
              1. How to do it…
              2. How it works…
              3. There's more…
              4. See also
            2. Removing a GridView column on clicking the header
              1. Getting ready
                1. How to do it…
                2. How it works…
                3. See also
              2. Dragging and dropping GridView rows
                1. Getting ready
                  1. How to do it…
                  2. How it works…
                  3. See also
                2. Changing cursor style for selective rows of a GridView
                  1. Getting ready
                  2. How to do it…
                  3. How it works…
                  4. See also
                3. Formatting a GridView and applying animation effect
                  1. Getting ready
                  2. How to do it…
                  3. How it works…
                  4. See also
                4. Retrieving the content of a GridView cell on click
                  1. Getting ready
                    1. How to do it…
                    2. How it works…
                    3. See also
      10. 4. Working with Image Control
        1. Introduction
          1. Getting started
        2. Adding/removing hyperlinks on images
          1. Getting ready
          2. How to do it…
          3. How it works…
          4. See also
        3. Displaying image captions
          1. Getting ready
          2. How to do it…
          3. How it works…
          4. See also
        4. Changing image opacity on mouseover
          1. Getting ready
          2. How to do it…
          3. How it works…
          4. See also
        5. Viewing enlarged images on mouseover on thumbnail
          1. Getting ready
          2. How to do it…
          3. How it works…
          4. See also
        6. Swapping images on a page
          1. Getting ready
          2. How to do it…
          3. How it works…
          4. See also
        7. Cropping images on a page
          1. Getting ready
          2. How to do it…
          3. How it works…
          4. See also
        8. Creating an image gallery viewer
          1. Getting ready
          2. How to do it…
          3. How it works…
          4. See also
        9. Zooming images on mouseover
          1. Getting ready
          2. How to do it…
          3. How it works…
          4. See also
      11. 5. Animations in ASP.NET
        1. Introduction
          1. Getting started
        2. Enlarging text on hover
          1. Getting ready
          2. How to do it…
          3. How it works…
          4. See also
        3. Creating a fade effect on hover
          1. Getting ready
          2. How to do it…
          3. How it works…
          4. See also
        4. Sliding elements on a page
          1. Getting ready
          2. How to do it…
          3. How it works…
          4. There's more…
          5. See also
        5. Preventing animation queue buildup
          1. Getting ready
          2. How to do it…
          3. How it works…
          4. See also
        6. Animating a panel
          1. Getting ready
          2. How to do it…
          3. How it works…
          4. See also
        7. Chaining animations together
          1. Getting ready
          2. How to do it…
          3. How it works…
          4. See also
        8. Hiding and displaying panels
          1. Getting ready
          2. How to do it…
          3. How it works…
          4. See also
        9. Creating disappearing effect
          1. Getting ready
          2. How to do it…
          3. How it works…
          4. See also
      12. 6. AJAX and ASP.NET (Part I)
        1. Introduction
          1. Getting started
        2. Setting up AJAX with ASP.NET using jQuery
          1. Getting ready
          2. How to do it…
          3. How it works…
          4. See also
        3. Using Firebug to view AJAX request/ response
          1. Getting ready
          2. How to do it…
          3. See also
        4. Consuming page methods with AJAX
          1. Getting ready
          2. How to do it…
          3. How it works…
          4. There's more…
          5. See also
        5. Consuming web services with AJAX
          1. Getting ready
          2. How to do it…
          3. How it works…
          4. There's more...
          5. See also
        6. Populating ASP.NET DropDownList using AJAX
          1. Getting ready
          2. How to do it…
          3. How it works…
          4. There's more…
          5. See also
        7. Creating an auto complete search box
          1. Getting ready
          2. How to do it…
          3. How it works…
          4. There's more...
          5. See also
      13. 7. AJAX and ASP.NET (Part II)
        1. Introduction
          1. Getting started
        2. Displaying a progress indicator during AJAX calls
          1. Getting ready
          2. How to do it…
          3. How it works…
          4. There's more…
          5. See also
        3. Reading XML data with AJAX
          1. Getting ready
          2. How to do it…
          3. How it works...
          4. There's more...
          5. See also
        4. Catching and displaying AJAX errors
          1. Getting ready
          2. How to do it…
          3. How it works...
          4. There's more...
          5. See also
        5. Using AJAX to load scripts in web pages
          1. Getting ready
          2. How to do it…
          3. How it works...
          4. There's more…
          5. See also
        6. Cross site AJAX querying using jQuery
          1. Getting ready
          2. How to do it…
          3. How it works...
          4. See also
        7. Using complex data types with AJAX
          1. Getting ready
          2. How to do it…
          3. How it works...
          4. There's more…
          5. See also
      14. 8. Client Templating in jQuery
        1. Introduction
          1. Getting started
        2. Using jQuery Templates to display data
          1. Getting ready
            1. How to do it…
            2. How it works…
            3. See also
          2. Displaying arrays using nested templates
            1. Getting ready
              1. How to do it…
              2. How it works...
              3. See also
            2. Calling JavaScript functions and conditional statements in templates
              1. Getting ready
              2. How to do it…
              3. How it works...
              4. See also
            3. Creating an ASP.NET CheckBoxList in templates
              1. Getting ready
              2. How to do it…
              3. How it works...
              4. See also
            4. Using templates to format data returned from web services
              1. Getting ready
                1. How to do it…
                2. How it works...
                3. There's more...
                4. See also
              2. Using callback functions with jQuery templates
                1. Getting ready
                2. How to do it…
                3. How it works...
                4. See also
              3. Calling external templates using jQuery
                1. Getting ready
                2. How to do it…
                3. How it works...
                4. There's more...
                5. See also