C# Web 应用程序 - 仪表板类型 GUI - 界面
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/16199/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Web App - Dashboard Type GUI - Interface
提问by Dale Marshall
I'm looking to create a dashboard type gui for a web application. I'm looking for the user to be able to drag and drop different elements (probably either image buttons, anchor tags, or maybe just divs) to different (defined) places and be able to save their setup (in a cookie or on the server). I'm working with c# in the .Net 2.0 framework. I've tried using mootools but their recent update has left their drag/drop capabilities un-useful for me. I'm looking for a bit of direction because I know there is something out there that is just what I'm looking for so I wont have to build from scratch.
我正在寻找为 Web 应用程序创建仪表板类型的 gui。我正在寻找用户能够将不同的元素(可能是图像按钮、锚标签或可能只是 div)拖放到不同(定义的)位置并能够保存他们的设置(在 cookie 中或在服务器)。我正在 .Net 2.0 框架中使用 c#。我曾尝试使用 mootools,但他们最近的更新使他们的拖放功能对我无用。我正在寻找一些方向,因为我知道有一些东西正是我正在寻找的东西,所以我不必从头开始构建。
Thanks.
谢谢。
采纳答案by AidenMontgomery
I have been looking at this kind of functionality myself recently and have decided on using jQuery with the help of jQuery UI. I came across a large amount of information that also suggested Yahoo UI(YUI), I had already started learning jQuerydue to the AJAX support that it offers, so I stuck with it.
我最近一直在研究这种功能,并决定在jQuery UI的帮助下使用 jQuery 。我遇到了大量也建议使用Yahoo UI(YUI)的信息,由于它提供了 AJAX 支持,我已经开始学习jQuery,所以我坚持使用它。
jQuery UI Site
jQuery UI Documentation
Example of a drag and drop screen layout with jQuery UI
Introduction to jQuery UI
jQuery UI 站点
jQuery UI 文档
带有 jQuery UI 的拖放屏幕布局示例 jQuery UI
简介
If you decide to use the YUI javascript library, here is a link to a vast amount of videos to help get you started.
如果您决定使用 YUI javascript 库,这里有一个指向大量视频的链接,可帮助您入门。
回答by Mikey P
I prefer using jQuery for AJAXy stuff like that. It also has a lot of very good plugins that make writing client-side code very easy.
我更喜欢将 jQuery 用于 AJAXy 之类的东西。它还具有许多非常好的插件,使编写客户端代码变得非常容易。
Here is the plugin page specifically for Drag-n-Drop.
这是专门用于 Drag-n-Drop 的插件页面。
http://plugins.jquery.com/project/Plugins/category/45
http://plugins.jquery.com/project/Plugins/category/45
Ajax callback are also very easy so saving the setup should be fairly easy as well.
Ajax 回调也非常简单,因此保存设置也应该相当容易。
回答by Jay Mooney
I used the Microsoft ASP.Net Ajax and AjaxControlToolkit to do something like this. They have a ResizeableControl and a DragPanel. I used these, then hosted an IFrame inside the panel to display the content.
我使用 Microsoft ASP.Net Ajax 和 AjaxControlToolkit 来做这样的事情。它们有一个 ResizeableControl 和一个 DragPanel。我使用了这些,然后在面板内托管了一个 IFrame 来显示内容。
Worked pretty well.
工作得很好。
This site:
本站:
http://www.asp.net/learn/videos/default.aspx?tabid=63#ajax
http://www.asp.net/learn/videos/default.aspx?tabid=63#ajax
Has lots of tutorial videos that show you how to get started using the controls.
有很多教程视频向您展示如何开始使用控件。
回答by Steven Murawski
You might want to look at DropThingson Codeplex.
你可能想看看DropThings在Codeplex上。