Click to See Complete Forum and Search --> : .NET user control


sriniviji
January 3rd, 2003, 03:50 PM
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

serg_dz
January 8th, 2003, 05:43 AM
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:

<?
if(...){
?>
html code
<?
}//end if
?>


You can do the same in any language.
__________________
Sincerely,
Serg Dzysyak
AlarIT programmer
http://www.AlarIT.com