Solved

Example for drag and drop for SQL fields in ASP.NET c#

Posted on 2016-09-08
3
74 Views
Last Modified: 2016-09-13
Hi,

Can EEs provide me an example that will read a table from SQL that allows users to select fields to display using drag and drop?  thanks
0
Comment
Question by:mcrmg
  • 2
3 Comments
 
LVL 43

Accepted Solution

by:
zephyr_hex (Megan) earned 500 total points
ID: 41790409
I will give you a general idea of how to do this, but a complete example is asking a lot for "free" help.

You can use JQuery UI to get the "droppable" effect.  Store the value of each dropped element.  You will probably want a button so the user can identify when they are done selecting elements.  On button click, send the values of the dropped elements to server side code using AJAX and perform your SQL query.

If you have any specific questions about the implementation, please let me know.
0
 

Author Comment

by:mcrmg
ID: 41790535
thank you..I will follow the direction and post back ..thanks
0
 

Author Closing Comment

by:mcrmg
ID: 41795914
thanks
0

Featured Post

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

There are a couple ways to attach a JavaScript function to dynamically created elements. You can make a new script for each element as it’s created or you can use delegation. Delegation allows a single script that is added at page creation to mat…
Introduction Knockoutjs (Knockout) is a JavaScript framework (Model View ViewModel or MVVM framework).   The main ideology behind Knockout is to control from JavaScript how a page looks whilst creating an engaging user experience in the least …
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

828 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question