G
Guest
I have the following code on my aspx page
<%if(user_status==1){%><ctl:state1 runat="server" id="aaa"></ctl:state1><%}else if(user_status==2){%><ctl:state2 runat="server" id="bbb"></ctl:state2><%}else if(user_status==3){%><ctl:state3 runat="server" id="ccc"></ctl:state3><%}else if(user_status==4){%><ctl:state4 runat="server" id="ddd"></ctl:state4><%}%
When I load the page, all four controls are inilialized (page_loa
of each is fired
Question
Is is possible to avoid initializing all controls but the one that really should be
displayed
Thank
Michał Januszczyk
<%if(user_status==1){%><ctl:state1 runat="server" id="aaa"></ctl:state1><%}else if(user_status==2){%><ctl:state2 runat="server" id="bbb"></ctl:state2><%}else if(user_status==3){%><ctl:state3 runat="server" id="ccc"></ctl:state3><%}else if(user_status==4){%><ctl:state4 runat="server" id="ddd"></ctl:state4><%}%
When I load the page, all four controls are inilialized (page_loa
of each is fired
Question
Is is possible to avoid initializing all controls but the one that really should be
displayed
Thank
Michał Januszczyk