I am working on a tool to construct a diagram in asp.net .The user is allowed to select the images from panel [generated dynamically based on user input in dropdown box] and its copy should be created on the diagram area, it should be draggable and should over lay with each other .
So far I am able to create the diagram objects dynamically and on click on each object its copy will be created on the diagram area [I am passing the instance from user control to main page] . I have used Drag Drop Extender to apply Drag behavior. Now my problem is which I create more objects the position of already created objects is not retained in the page. I have js code to retain the position for static controls, but I don't know how to apply for dynamic controls.
//Main function in .cs page
private void ExtractImage(string aaa, System.Web.UI.WebControls.Image imgbtn)
string temp = aaa.Split('&'); //aaa wil contain the Image ID and URL selected by user from user control
imgbtn.ImageUrl = temp.ToString();
imgbtn.ID = temp.ToString();
View Complete Post