Click here to Skip to main content
12,626,326 members (35,779 online)
Rate this:
Please Sign up or sign in to vote.
I have requirement
I have two listboxes
one list box get data from database then i want drag an item from one list to another list box with out using any button and java script and jquery.
I want to write code only by using and or

Please help me how to write the code
Its a great help to me.
Posted 21-Dec-12 2:20am
Rate this: bad
Please Sign up or sign in to vote.

Solution 2

Can't be done.

You MUST write some kind of script into the page to support dragging and dropping in a web page. You cannot do it with C# or VB.NET because ASP.NET code runs on the server side ONLY.

The easiest way to do this is jQuery. You can find an example at: Drag and Drop Sortable Lists using jQueryUI, jQuery AJAX, ASP.NET Web Methods and a Detachable Entity Framework Data Repository[^]
Rate this: bad
Please Sign up or sign in to vote.

Solution 1

Please refer following link:
Dave Kreskowiak 21-Dec-12 10:56am
To bad your code only works for Windows Forms apps and not the ASP.NET app that the OP asked about. Try reading the complete question next time.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web02 | 2.8.161205.3 | Last Updated 21 Dec 2012
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100