SEARCH
0-9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
Prev | Current Page 154 | Next

Robin Pars, Laurence Moroney, and John Grieb

"Foundations of ASP.NET AJAX"

These controls
require additional scripts that may not have been included in the master page. That is
precisely where the ScriptManagerProxy control comes in.
Without getting into discussions about the ASP.NET AJAX Control Toolkit, we??™ll add
one of its controls, the DragPanelExtender, to the content page with the help of the
ScriptManagerProxy control. To do this, drag and drop a ScriptManagerProxy control,
followed by a Label control, and a DragPanelExtender (from the AJAX Control Toolkit)
onto the page. Set the text property of the Label control to some text such as ???You can
drag and drop this label.??? At this point, your page should look similar to Figure 5-3 with
the following code:
<%@ Page Language="C#" MasterPageFile="~/MasterPage.Master" AutoEventWireup="true" ???
CodeBehind="ContentPage.aspx.cs" Inherits="Ajax.ContentPage" ???
Title="DragPanelExtender Demo" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" ???
TagPrefix="cc1" %>
runat="server">


"False" TargetControlID="Label1">

 
142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166