Click here to Skip to main content
15,892,797 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello everyone, i am working on a project in .net. There is need to create Dynamic form with Dynamic Controls. Like Toolbox in visual studio i want to create a toolbox with basic controls like Label, Literal, Checkbox etc with drag and drop functionality in asp.net. one can drag the control from the toolbox and can drop at the right side of the form and can create dynamic form. Please guys suggest me how to achieve it.

Thanks in advance.

What I have tried:

I am able to move listview items by onclick of listview items but i have to drag and drop.
Posted
Updated 8-Nov-18 9:52am

1 solution

Well it's not an easy task to do, not unless if client-side scripting is your area of expertise.

The "drag-and-drop" feature is a client-side thing. This means that you would need to use JavaScript to perform that. You can look for a JavaScript library that has drag-and-drop feature so you'll save your time rolling your own JavaScript code from scratch. One example is using jQuery drag-drop UI feature: Draggable | jQuery UI[^] and droppable: Droppable | jQuery UI[^]

Here's one I found that uses jQuery to enable drag-and drop in ListView: Drag and drop ListView item using jQuery
 
Share this answer
 
Comments
Syf AK 8-Nov-18 23:45pm    
Thanks a lot sir.

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900