In the SampleWebSite
project that you saw earlier, there is also an excellent example for the DragPanelExtender
control found in DragPanel.aspx. Before looking at the code, run the page, and drag the
panel around to see how nicely it works (see Figure 7-18).
CHAPTER 7 ?– USING THE ASP.NET AJAX CONTROL TOOLKIT (PART 1) 159
Figure 7-18. DragPanel control in action
When you view the ASPX markup for this page, you??™ll see a few nested Panel controls
and the DragPanel control:
style="z-index: 20;">
BorderStyle="Solid" BorderWidth="2px" BorderColor="black">
Drag Me
Style="overflow: scroll;" BackColor="#0B3D73"
ForeColor="whitesmoke" BorderWidth="2px" BorderColor="black"
CHAPTER 7 ?– USING THE ASP.NET AJAX CONTROL TOOLKIT (PART 1) 160
BorderStyle="Solid" >
This panel will reset its position on a postback or
page refresh.
<%= GetContentFillerText() %>