Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

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.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7547669
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T09:30:41+00:00 2026-05-30T09:30:41+00:00

I have made jquery drag and drop. Div items dropping into another div Does

  • 0

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?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T09:30:43+00:00Added an answer on May 30, 2026 at 9:30 am

    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

    $("#TopBodyPanel").droppable({  drop: function (event, ui) {
    
     $(ui.draggable).detach().css({ top: 0, left: 0 }).appendTo($(this));
             $.ajax({
            type: 'POST',
            contentType: 'application/json; charset=utf-8',
            data: "{ControlId: '"+ui.draggable.attr('id')+"',contentPosition :'" + ui.draggable.data("order-position") + "',ContainerId: '"+$(this).attr('id'))+"',}",
            dataType: 'json',
            url: $(location).attr('href') + "/UpdatePanelContent",
            success: function (result) 
             { //do something
             },
        });
    }});
    

    Save information into xml field in DB associated to the logon user.

    On Page load.
    Iterate through panel containers.

    foreach(....){
    ControlName.Attributes.Add(dataDefaultIndexAttributeName, pageItem.Index.ToString());
    }
    

    then in HTML

    $(function() {
       $("#sortable-wide-column-id").children("div").tsort({ attr: 'order-position', order: 'asc' });
    }):
    

    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.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a div element which is made jquery Resizable. It has alsoResize option
I have a drop down menu made with Jquery. Right now, if you hover
I am learning JQuery, and I have ran into an odd issue. I made
I have a 'toolbar' div that I made resizable via jQuery UI. The weird
I have made a simple web page using jQuery. When opening it on another
I have made a DIV resizable in jQuery, like this: $(#myDiv).resizable(); Simple, Now is
I have made a map with jQuery which is split up in many regions,
I have made a image gallery with jQuery found here: http://sarfraznawaz2005.kodingen.com/demos/jquery/image_gallery/ I just wanted
I have started using jQuery and rails. I have made a simple form that
I have made a jQuery plugin that works fine when applied to a single

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.