Simple Summary of Atlas drag

Source: Internet
Author: User

With Atlas, it is very easy to do some random drag effects. In vs.net 2005, if Atlas is installed, there are many controls.
Which can be implemented. The following is a summary.

1. Use the <Atlas: dragoverlayproperties> control, such
<Atlas: scriptmanager id = "scriptmanager1" runat = "server" enablepartialrendering = "true"/>
<Atlas: dragoverlayextender id = "dragoverlayextender1" runat = "server">
<Atlas: dragoverlayproperties targetcontrolid = "Panel1" enabled = "true" profileproperty = "panel1loc"/>
</Atlas: dragoverlayextender>
<Atlas: profilescriptservice id = "profilescriptservice1" runat = "server" autosave = "true"/>
<Div>
<Atlas: updatepanel id = "updatepanel1" runat = "server">
<Contenttemplate>
<Asp: Panel id = "Panel1" runat = "server" borderstyle = "solid" Height = "198px" width = "194px">

// Write what you want to write here, such as an image
</ASP: Panel>
</Contenttemplate>
</Atlas: updatepanel>
If you want to remember the location after each drag, you need to set it in Web. config, as shown in
<System. Web>
<Profile>
<Properties>
<Add name = "panel1loc" type = "system. String"/>
</Properties>
</Profile>

<Profileservice enabled = "true"
Setproperties = "panel1loc"
Getproperties = "panel1loc"
/>
In this way, the profile service can read and write the attribute panel1loc at this location, and then set it as described above:
<Atlas: dragoverlayextender id = "dragoverlayextender1" runat = "server">
<Atlas: dragoverlayproperties targetcontrolid = "Panel1" enabled = "true" profileproperty = "panel1loc"/>
</Atlas: dragoverlayextender>
<Atlas: profilescriptservice id = "profilescriptservice1" runat = "server" autosave = "true"/>
Targetcontrolid indicates to drag Panel1. Remember that the location attribute is specified by profileproperty, while
If you set autosave to true for profilescriptservice, remember the position after each drag.

2. You can also use the dragpanelextender control in Atlas Tookit,
For example
<C0: dragpanelextender id = "dragpanelextender1" runat = "server">
<PC3: dragpanelproperties draghandleid = "panel2" targetcontrolid = "Panel1"/>
</PC3: dragpanelextender>

You can set a drag area, such as panel2, to put a prompt text, and then be dragged together
Set the region to Panel1, and use draghandelid and targetcontrolid respectively. But if dragpanelextender is used
Remember the location after the drag

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.