I suppose you want to simulate the Visual Studio's toolkit in a web app. You would be having a list of controls which the user can add, and then drag/drop to a given location within the page. Then you need to save the id of the control and the position where it was placed by the user.
You can do that. However due to the flow-layout nature of html, you need to use some hacks to design this functionality.
1. Divide your drop zone into several parts, where each part will be having an identifier to be used as drop-target. When user drops a control here, you save the control's id and this identifier.
2. Place all the control types you want in a separate location. Within each control, add additional self defined properties you want be used for tracking.
3. Use jquery ui's draggable and droppable widgets (http://jqueryui.com/droppable/
4. Once the drag event is completed, take the dragged object's id along with properties and the drop container id and save it to DB using ajax. Do a clone of the dragged event id (
and place it within the container. After this return false so that the main drag/drop event is cancelled. Else the control will get removed from the drag area.
Hope the basic idea works for you. Let me know if you face any major obstacle. If it works, please mark as answer :)