Ajax controltoolkit Learning Log-dragpanel (8)

Source: Internet
Author: User
The dragpanel control is used to drag a panel on a webpage and arrange its position from the new one.

Here is an example:

1) Create an ASP. NET Ajax-enabled web project named dragpanel1.

2) drag and drop three panels on the page and name them draghandlepanel, content, and dragpanel respectively. Draghandlepanel is used as the drag event processing, content as the storage content, and dragpanel as the entire target object of dragpanelextender. Code As follows:
1 < Div Style = "Height: 300px; width: 150px ;" >
2 < ASP: Panel ID = "Dragpanel" Runat = "Server" >
3 < ASP: Panel ID = "Draghandlepanel" Height = "20px" Width = "100%" Runat = "Server" >
4 < Div Class = "Dragme" > Drag me </ Div >
5 </ ASP: Panel >
6 < ASP: Panel ID = "Content" Height = "100px" Width = "100%" Runat = "Server" >
7 < Div > Fjeofjioefjojefiefef </ Div >
8 </ ASP: Panel >
9 </ ASP: Panel >
10
11 </ Div >

3) drag and drop a dragpanelextender on the page to set its attributes. The Code is as follows:
<C0: dragpanelextenderID= "Dragpanelextender1"Targetcontrolid= "Dragpanel"Draghandleid= "Draghandlepanel"Runat= "Server"> </C0: dragpanelextender>


The view is as follows:



4) press Ctrl + F5 to view the information in the browser. The effect is as follows:

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.