CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Jul 2001
    Posts
    28

    Question .NET user control

    I want to display one user control out of different controls based on the user selection.

    If I hide other controls, will hidden control HTML tags be sent to
    browser?

    If yes, I do not want to send hidden user control to browser, because it will take up rendering time?

    Anyone knows how to avoid sending hidden user controls to browser?

    Thanks
    Srini

  2. #2
    Join Date
    Oct 2002
    Location
    Ukraine
    Posts
    7
    You can do the same way as you do in any programming language. If you don't want something to be printed out you simply do not do this.

    A small php example:
    PHP Code:
    <?
    if(...){
    ?>
    html code
    <?
    }//end if
    ?>
    You can do the same in any language.
    __________________
    Sincerely,
    Serg Dzysyak
    AlarIT programmer
    http://www.AlarIT.com

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured