webobject sendtoback


How can I implement the order front/order back functions of the IDE, on runtime ? I want to sendback a webobject or bring2font it.


Iterate the WebControls on a page. Find the maximum ZIndex. Set you control to max + 1 to bring it to the front. As for sending to the back, try setting ZIndex to 0. Not sure what happens if you have other controls with ZIndex 0, i.e. if their ZIndex’s get bumped up. You might experiment with that.