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