I created a Windows Forms application in C # that allows users to add controls to TabPage that they can modify and modify. Now I want to do the same only in ASP.NET.
I managed to add controls dynamically after this tutorial . I use jQuery UI to make them resizable and draggable. The problem I am facing is that when I add a new control, everyone else returns to its original position and size.
I assume that I need to save their position and size and apply them to the newly created control on LoadViewState. Is there a way to view these attributes from code? I managed to get this information using Javascript, but I don’t know how to convert it to code.
Can anyone point me in the right direction? Thanks in advance.
[EDIT] Thanks for the reply. Here's the code:
HTML C #
source
share