JQuery的拖放与ASP.NET功能 [英] JQuery Drag and Drop features with ASP.NET
本文介绍了JQuery的拖放与ASP.NET功能的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
嘿,我想救我的名单在jQuery的拖放放SQL Server数据库的顺序;滴使用asp.net C#。
Hey I wanna save the order of my list to the sql server database in jquery drag & drop using asp.net c#.
我怎样才能做到这一点?
How can I do this?
推荐答案
jQuery UI的有一个事件的每个用户进行降的时候,在这种情况下你与元素到你的服务器的顺序一个Ajax请求。还有你的元素的顺序保存到您的SQL Server。
jQuery UI has an event every time the user makes a drop, in that event you make a ajax request with the order of the elements to your server. There you save the order of the elements to your sql server.
$( ".selector" ).droppable({
drop: function(event, ui) {
$.ajax({...})
}
});
我不知道Asp.net C#中,但在保存在服务器端的东西到数据库应该是比较容易的部分。
I dont know Asp.net C#, but saving something in the server side to the database should be the easy part.
这篇关于JQuery的拖放与ASP.NET功能的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文