从 Coldfusion 到 Asp.net 的转换(拖放功能)

发布于 2024-12-29 06:21:53 字数 286 浏览 1 评论 0原文

我有 Coldfusion Web 应用程序,它有一个来自数据库表的 CF 查询。该数据显示在 HTML 表格中,每个数据项旁边有一个复选框以及关联的图片。页面上有 Jquery 功能,以便可以根据用户的偏好在表中重新排列项目。用户完成重新安排后,它会重新显示,并且不带有用于作为电子邮件发送的复选框。请注意,我自己没有编写此应用程序,而是继承了它...

我需要将此功能转移到 asp.net C# Web 应用程序,但我正处于如何继续的十字路口。我查看了 Telerik 控件和其他控件,但似乎没有一个适合我需要的功能。有什么靠谱的建议吗?

I have Coldfusion web application that has a CF query from a database table. This data is displayed in an HTML table with a checkbox beside each data item and an associated picture. There is Jquery functionality on the page so that the items can be re-arranged in the table based on the users preference. After the user finishes with their re-arrangement, it is re-displayed without the checkboxes for sending as an email. Note I did not write this application myself but inherited it...

I need to transfer this functionality to a asp.net C# web application but i am at a crossroads on how to proceed. I've looked at telerik controls and others but none appear to fit the functionality i need. Any solid suggestions?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

白馒头 2025-01-05 06:21:53

我建议您自己处理表格的渲染。如果您使用的是 asp.net webforms,这可以通过自定义服务器控件来完成。如果您使用的是 asp.net mvc(我建议,因为 MVC 比 webforms 更接近地匹配 Coldfusion 开发模型),那么它会简单得多,您只需在视图中执行即可。

一旦您自己渲染网格,那么在客户端应用 jquery 功能就很简单了。

如果没有更多关于您可以做什么或不能做什么的信息,则很难提供更多指导。但你只是征求建议:-)

I'd suggest to handle rendering of the table yourself. If you're using asp.net webforms, this can be done with a custom server control. If you're using asp.net mvc (which I suggest as MVC matches the coldfusion development model a bit closer than webforms), then it's much simpler and you can just do so in the view.

Once you are rendering the grid yourself, then it's simple to apply the jquery functionality on the client-side.

Without more info about what you can or can't do, it's a bit difficult to offer any more guidance. But you did only ask for suggestions :-)

软糖 2025-01-05 06:21:53

Asp.net 并不意味着您需要使用为 .net 构建的库控件。如今 jQuery 已经足够强大,并且它不依赖于任何后端技术。

因此,话虽这么说,我仍然会使用 jQuery,并使用带有 WebForms 的 Web 服务或带有 MVC 的控制器通过 RESTful 请求来支持它。

看看这个:JQuery 拖放功能与 ASP.NET< /a>

Asp.net doesn't mean you need to use a library control built for .net. jQuery is powerful enough today, and it's not tied to any back end technology.

So, that being said, I would still go with jQuery and back it up with RESTful request using webservices with WebForms or controllers with MVC.

Have a look at this: JQuery Drag and Drop features with ASP.NET

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文