Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

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.

Posted

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.

Posted
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! ;)

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...