IxiRancid Posted May 18, 2005 Posted May 18, 2005 The question: If I put on an aspx webpage some controls like a textbox and a button and set their .Visible property to False... do these two controls get "rendered" or they don't show on the page's code? I like code-behind and this way I would solve a problem of <script... if YES then /script> SHOW HTML CONTENT <script else /> SHWO OTHER HTML CONTENT A bit weird, if I'm not clear enough just say, and I'll try to explain in more detail. Quote
HJB417 Posted May 18, 2005 Posted May 18, 2005 ripped from the msdn docs If this property is false, the server control is not rendered. You should take this into account when organizing the lay out of your page. Quote
IxiRancid Posted May 18, 2005 Author Posted May 18, 2005 ripped from the msdn docs Allright! However, I still see this control in designer, which COULD be bothering me or the designer especially if the control is there. Well, on a second thought maybe not, he should concentrate on the control being there and hold consistency thru the page like <td width> and stuff. kewl, thanks! ;) Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.