Best way to swap places of controls? [modified]
-
Hello! I´ve got a couple of placeholders like this:
asp:PlaceHolder ID="Pl1" runat="server"> <a href="http://www.mypage1.com" target="_blank">Click here</a> </asp:PlaceHolder> asp:PlaceHolder ID="Pl2" runat="server"> <a href="http://www.mypage2.com" target="_blank">Or click here</a> </asp:PlaceHolder> asp:PlaceHolder ID="Pl3" runat="server"> <a href="http://www.mypage3.com" target="_blank">or Click here</a> </asp:PlaceHolder>
Depending of a couple of things I want to swap places between the placeholders. What is the best way to do this, performance-wise? I´ve had a solution where I remove placeholders and put them back in the controll-tree in the order I want them to be in, but this does not feel so efficient. Is there some other way? /regardsmodified on Thursday, September 24, 2009 10:30 AM
-
Hello! I´ve got a couple of placeholders like this:
asp:PlaceHolder ID="Pl1" runat="server"> <a href="http://www.mypage1.com" target="_blank">Click here</a> </asp:PlaceHolder> asp:PlaceHolder ID="Pl2" runat="server"> <a href="http://www.mypage2.com" target="_blank">Or click here</a> </asp:PlaceHolder> asp:PlaceHolder ID="Pl3" runat="server"> <a href="http://www.mypage3.com" target="_blank">or Click here</a> </asp:PlaceHolder>
Depending of a couple of things I want to swap places between the placeholders. What is the best way to do this, performance-wise? I´ve had a solution where I remove placeholders and put them back in the controll-tree in the order I want them to be in, but this does not feel so efficient. Is there some other way? /regardsmodified on Thursday, September 24, 2009 10:30 AM