All controls involved are within the same update panel.
On the initial page load, I am moving controls in the DOM as such:
DIV_Child.Parent.Controls.Remove(DIV_Child) 'Remove from original parent'
DIV_NewParent.Controls.Add(DIV_Child)
On the initial page load, I am also manipulating these controls by adding styles.
DIV_Child.Style("position") = "absolute"
DIV_Child.style("background-color") = "black"
'etc.
When a partial postback occurs, DIV_Child goes back to its original state: unmoved and unstyled.
- This problem only occurs for those controls that are moved within the DOM. If I remove those lines that move the controls, the controls maintain styling and DOM-positioning between partial postbacks.
How do I prevent moved-controls from losing their styles and new positions within the DOM upon partial postback?