Reputation: 11807
I am working on a page that has user controls that are arranged in a particular layout. I am modifying that page to support reordering the position based on user's preferences. So, essentially, on load, I have information on where I need to position the different user controls.
I can think of 2 approaches:
Are there any other ways of accomplishing what I am trying to do?
Upvotes: 0
Views: 1048
Reputation: 7345
I would recommend rearranging on the client-side because
How can do you that
The drawback of this approach is that you will have to use absolute positioning.
Upvotes: 1
Reputation: 50728
There is an easier way; rendering is controlled by the parent container rendering them. It is possible to create a container, and have full control over the ordering of the rendering of its children (by overriding the RenderChildren method). It's not the easiest option, but it can work. The steps are:
Upvotes: 0