Table of Contents


Chapter 1: Working with ASP.NET Controls_5

Introduction 5

Creating default text for TextBoxes 10

Auto focus on the first TextBox and tab on the Enter key 14

Disallowing cut/copy/paste operations on a TextBox 17

Highlighting text in a TextBox and copying to the clipboard 20

Displaying selected items of a CheckBoxList 24

Selecting/deselecting all items in CheckBoxList 27

Getting selected text and value from DropDownList 29

Appending items at runtime to a DropDownList 32

Creating 'Back to Top' ASP.NET hyperlink 37

Updating URL of ASP.NET hyperlink at runtime 41

Chapter 2: Validation of ASP.NET Controls_45

Introduction 45

Getting started 46

Validation of a sample user login form 48

Validation of basic field types in a user profile form 52

Character limit validation in Multiline ASP.NET TextBox 61

Validation of date range in ASP.NET Form 65

Validation of ASP.NET CheckBoxList 69

Validation of ASP.NET RadioButtonList 73

Validation of ASP.NET ListBox Control 75

Validation of ASP.NET DropDownList Control 79

Chapter 3: Working with GridView Control_83

Introduction 83

Highlighting rows/cells of a GridView on hover 89

Removing GridView rows/cells on click 92

Removing a GridView column on clicking the header 96

Dragging and dropping GridView rows 98

Changing cursor style for selective rows of a GridView 101

Formatting a GridView and applying animation effect 104

Retrieving the content of a GridView cell on click 106

Chapter 4: Working with Image Control_111

Introduction 111

Adding/removing hyperlinks on images 112

Displaying image captions 117

Changing image opacity on mouseover 121

Viewing enlarged images on mouseover on thumbnail 125

Swapping images on a page 129

Cropping images on a page 132

Creating an image gallery viewer 138

Zooming images on mouseover 144

Chapter 5: Animations in ASP.NET_149

Introduction 149

Enlarging text on hover 151

Creating a fade effect on hover 155

Sliding elements on a page 158

Preventing animation queue buildup 161

Animating a panel 165

Chaining animations together 169

Hiding and displaying panels 173

Creating disappearing effect 176

Chapter 6: AJAX and ASP.NET (Part I)_179

Introduction 179

Setting up AJAX with ASP.NET using jQuery 182

Using Firebug to view AJAX request/response 186

Consuming page methods with AJAX 191

Consuming web services with AJAX 197

Populating ASP.NET DropDownList using AJAX 202

Creating an auto complete search box 210

Chapter 7: AJAX and ASP.NET (Part II)_217

Introduction 217

Displaying a progress indicator during AJAX calls 219

Reading XML data with AJAX 226

Catching and displaying AJAX errors 231

Using AJAX to load scripts in web pages 237

0 0

Post a comment