JQuery Drag and Drop features with ASP.NET

早过忘川 提交于 2019-12-08 12:38:59

问题


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?


回答1:


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({...})
   }
});

I dont know Asp.net C#, but saving something in the server side to the database should be the easy part.



来源:https://stackoverflow.com/questions/4106018/jquery-drag-and-drop-features-with-asp-net

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!