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

  • SEARCH
  • Home
  • 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 7013689
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T22:25:25+00:00 2026-05-27T22:25:25+00:00

i have a dragable li and i use ajax with asp.net. When I start

  • 0

i have a dragable “li” and i use ajax with asp.net. When I start the page drop-drag is working, but when I click the button it doesn’t. How can I solve it? All help will be appreciated.

<script type="text/javascript" src="jquery-1.3.2.min.js"></script>
<script type="text/javascript" src="jquery-ui-1.7.1.custom.min.js"></script>
<script type="text/javascript" >

$(document).ready(function(){ 
     $(function() {
           $("#contentLeft ul").sortable({ opacity: 0.6, cursor: 'move', update: function() {

   }                                  

     });

    });

}); 

<div id="contentLeft" runat="server">
    <ul id="mainOptions" runat="server">

    <li id="recordsArray_2" runat="server">2. I am coming.</li>

    <li id="recordsArray_1" runat="server">1. How areyou?</li>

    <li id="recordsArray_4" runat="server">4. Which is yours?</li>

    <li id="recordsArray_3" runat="server">3. This is a book.</li>                  

    </ul>

</div>

<asp:Button ID="btnHelloWorld" runat="server" Text="Update label " 
                onclick="btnHelloWorld_Click" />
  • 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-27T22:25:26+00:00Added an answer on May 27, 2026 at 10:25 pm

    If you have your list inside update panel and script outside of it then $(document).ready will be fired only once when page is loaded. On this first load you set up drag and drop thing on your list.

    Later you click a button and content of the update update is updated removing objects that have drag and drop plugins on them and passing fresh new ones from server. If you need to resetup drag and drop you can use page load event from asp.net ajax.

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

Sidebar

Related Questions

I have a page that loads content via ajax. When I click on a
I know that I can use the JQueryUI Drag and Drop with some of
How do we use a layer-list as a drawable for a button. I have
I have a bug similar to this answered question: js/jQuery Drag'n'Drop, recalculate the drop
I have a draggable div element with a hover style. This works fine, but
I have a draggable table which all working fine, though I want to be
I have a specific drawable that I use as background in my app. It
I have a Draggable in Script.aculo.us. I'd like to use ghosting, which clones the
How to create similar drag and select chart, or which Jquery plugin to use
I'm working on an android application, and I have a drawable that I'm loading

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.