By Zach Dwight, GIS Programmer, Yakima, WA
VERY simple code snippet that allows you to create four buttons that move nodes (server or layer) up or down one index within the TOC control of a web application. I created four button events:
-Move Server Node Up
-Move Server Node Down
-Move Layer Node UP
-Move Layer Node Down
Simple? Simpler than it looks even. Modify it and spice it up with some graphics. In my case, I use the checked property to identify the node that should be moved. Pic included and error handling.