If you are having trouble doing this with asp.net, then I don't believe you full understand how asp.net controls work. For instance, to accomplish your example you could do the following.
Put all the random html you want inside an <asp:placeholder> control
Then from a script block, you can do this
myPlaceHolder.Visible = x;
(if x is true, so will the contents of the placeholder)
--Michael
"Richard Frenkel" <ne*******@frenkelfamily.org> wrote in message news:11**********************@c13g2000cwb.googlegr oups.com...
In scripting languages such as PHP and ColdFusion, it is easy to
conditionally include a block of html using something like
(pseudocode):
<if x=true>
This is some <b>random html<b>
that gets displayed if x is true and not otherwise
</if>
I've been coding using c# and asp.net and find it impossible to do the
same thing on asp.net pages. I don't need the html block parsed, so 2
passes aren't needed (although that would be nice).