I have made jquery drag and drop.
Div items dropping into another div
Does its possible to handle dropped event with c#? I want to insert dropped items into database.
Or if i can call c# method from jquery and send some string data?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
First you’ll need to decide on a drag and drop library, you can’t go past. JQuery UI.
http://jqueryui.com/demos/droppable/
Also do want to drop elements and sort them, well take a look at. TinySort
http://tinysort.sjeiti.com/
best way to manage your order is by add extra attributes to your draggable panel e.g.
Then on Stop function of the droppable plugin call some ajax to a web method
–droppable
Save information into xml field in DB associated to the logon user.
On Page load.
Iterate through panel containers.
then in HTML
I realise this isn’t a end-to-end solution however this is a few bit and pieces of code I implement a few months ago for a drag-drop, sortable widgets for a logon user homepage.