multiple ASCX user controls on single page

Discussion in 'ASP .Net Web Controls' started by Michał Januszczyk, Apr 8, 2004.

  1. 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
    Michał Januszczyk, Apr 8, 2004
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Quentin
    Replies:
    1
    Views:
    473
    Quentin
    Jul 29, 2003
  2. Jason Shohet
    Replies:
    1
    Views:
    469
    Kevin Spencer
    Nov 10, 2003
  3. Holger (David) Wagner
    Replies:
    2
    Views:
    1,927
    Holger (David) Wagner
    Jul 3, 2004
  4. Joe
    Replies:
    1
    Views:
    361
    Jeffrey Tan[MSFT]
    Feb 16, 2004
  5. Replies:
    2
    Views:
    524
Loading...

Share This Page