我需要在asp.net中开发拖放控件UI [英] i need to develop drag and drop control UI in asp.net

查看:98
本文介绍了我需要在asp.net中开发拖放控件UI的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

i want to make a asp.net page in which you have few controls. you can drag and drop controls to the div and also set the position in the div and save the div in database and recall it whenever you want. i need to know how this will work? how to save the position of controls.. etc ![enter image description here][1]


http://i.stack.imgur.com/nE0aT.jpg

something like i have showed in image

推荐答案

请检查以下链接..

http://www.aspdotnet-suresh.com/2012/09/simple-jquery-drag-and-drop-div-example.html [ ^ ]

< a href =http://jqueryui.com/draggable/> http://jqueryui.com/draggable/ [ ^ ]

http://www.aspdotnet-suresh.com/2012/10/12-best-jquery-drag-and-drop-plugin.html [< a href =http://www.aspdotnet-suresh.com/2012/10/12-best-jquery-drag-and-drop-plugin.html\"target =_ blanktitle =New Window> ^ ]
please check below links..
http://www.aspdotnet-suresh.com/2012/09/simple-jquery-drag-and-drop-div-example.html[^]
http://jqueryui.com/draggable/[^]
http://www.aspdotnet-suresh.com/2012/10/12-best-jquery-drag-and-drop-plugin.html[^]


参考



http://msdn.microsoft.com/en-us/magazine/cc135985.aspx#S1 [ ^ ]



使用JQuery拖放持久性 [ ^ ]


你有2个解决方案。首先是使用JQuery+Jquery UI(Drag& amp;删除功能)在您的网页中。此解决方案是用户友好的解决方案,但对于没有足够的JQuery信息的开发人员来说有点复杂,您还必须自己处理保存数据库中的最后一次UI更改。您可以收集信息关于JQuery UI的以下链接:



http://jqueryui.com



第二个解决方案是使用Microsoft asp.net Web部件控件和asp.net会员管理最简单的解决方案。它可以自动保存任何用户的UI状态。您不需要为此编写任何代码。有关更多信息,请访问MSDN中的本教程:



http://msdn.microsoft.com/en-us/library/e0s9t4ck.aspx [ ^ ]
You have 2 solution.The first is to use "JQuery" + "Jquery UI (Drag & Drop Features)" in your webpage.This solution is the user friendly one but it is a little complicated for developers that don't have enough information about JQuery, also you have to handle saving last UI changes in DB yourself.You can collect information about JQuery UI in the following links:

http://jqueryui.com

The second solution is the easiest one by using Microsoft asp.net Web Parts controls in conjunction with asp.net membership management.It can save UI state of any user automatically and you don't need to write any code for that.For more information visit this tutorial in MSDN:

http://msdn.microsoft.com/en-us/library/e0s9t4ck.aspx[^]


这篇关于我需要在asp.net中开发拖放控件UI的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆