创建一拖在ASP.NET 3.5应用降 [英] Creating a drag and drop application in ASP.NET 3.5

查看:129
本文介绍了创建一拖在ASP.NET 3.5应用降的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要一个客户端能拖并在ASP.NET 3.5 Web的应用程序拖放图像转换成类文件夹。

I need to make a client able to drag and drop images into category-folders in an ASP.NET 3.5 web-app.

我希望一个选项的存在,这是几乎一样的Reorderlist从Ajax控件工具包一样易于使用,并在那里我没有寻找到JQuery的或类似的handcoding。

I was hoping that an option existed, that was almost as easy to use as the Reorderlist from Ajax Control Toolkit, and where I did not have to look into JQuery or similar handcoding.

你有什么建议?

类似的问题已经被问过,像这样5个月前...:<一href="http://stackoverflow.com/questions/13589/asp-net-ajax-drag-drop">http://stackoverflow.com/questions/13589/asp-net-ajax-drag-drop其中,MooTools的建议,但6个月时间长了ASP.NET/Ajax世界,也许更好的和更简单的选项现在存在?

Similar questions have been asked before, like this 6 months ago...: http://stackoverflow.com/questions/13589/asp-net-ajax-drag-drop where MooTools is recommended, but 6 months is a long time in the ASP.NET/Ajax world, so maybe a better and even simpler option exists now?

商业成分也是一种选择 - 以及高达200 $反正

Commercial components are also an option - well up to 200$ anyway.

推荐答案

我与重排列表中的Ajax控件工具包的经验,与许多其他第三方提供商,是大多数人似乎并不值得努力。一定要试试他们之前,你买。

My experience with the Reorder List in the Ajax Control Toolkit, as with many other 3rd party providers, is that most of them don't seem to be worth the effort. Definitely try them before you buy.

不幸的是,很多样品/组件出有太的客户基础,似乎总是功亏一篑现实世界的使用和各种互动的需要与ASP.Net应用(如处理回发)。周围拖动一个div并不复杂,但仅此而已了大量的例子做。如果你的需求不完全反映其招股尝试其他的东西。

Unfortunately a lot of the samples/components out there are all too client-based and always seem to fall short on real-world uses and the sorts of interaction you need with ASP.Net applications (e.g. handling postback). Dragging a div around isn't that complicated, but that's all a lot of examples do. If your needs don't exactly mirror their offering try something else.

借助曼宁图书的在行动ASP.NET AJAX 是在code很好的参考执行拖放操作。它采用Microsoft.Web。preVIEW,但这并没有在相当长的一段时间,这是困扰了更新。我创建了一个pretty的良好阻力,并与MS的previewDragDrop下降UI,它的工作跨浏览器,这是pretty的容易code。 preVIEW DLL的旁边,曼宁书是伟大的了解微软的AJAX API。

The Manning book ASP.NET AJAX in Action is a good reference on code for performing drag and drop. It uses Microsoft.Web.Preview, but this hasn't been updated in quite some time which is a worry. I have created a pretty good drag and drop UI with MS's PreviewDragDrop, it does work cross-browser, and it's pretty easy to code. Preview DLL's aside, the Manning book is great for understanding Microsofts AJAX API.

然而的,因为jQuery的将是运输和使用Visual Studio的支持,我会建议使用它交给其他任何妄图以面向未来的自己。

However, since jQuery is going to be shipped and supported with Visual Studio, I would recommend using it over anything else in a vain attempt to future-proof yourself.


有一个最后的建议是从来没有外包你的核心竞争力。如果这个页面是你的产品的核心部分你最好使用库code像jQuery或Microsoft.Ajax而不是依赖于第三方组件实现它自己。但是,如果这是你的网站只是一小部分,然后继续使用第三方控件。

A final piece of advice is never outsource your core competency. If this page is a core part of your offering you're better off implementing it yourself using library code like jQuery or Microsoft.Ajax rather than relying on a 3rd party component. However, if it's just a minor part of your site, then go ahead and use 3rd party controls.


参考:我Microsoft.Web版本preview.dll是1.1.61025.0。

Ref: My Version of Microsoft.Web.Preview.dll is 1.1.61025.0.

这篇关于创建一拖在ASP.NET 3.5应用降的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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