views:

19

answers:

1
<div class="reusableBlueContent">
  <table cellpadding="0" cellspacing="0" style="width: 500px;">
    <tr>
      <td colspan="6" style="height: 24px;">
        <h3 style="text-align: left; height: 23px;">
           Package Recap</h3>
      </td>
    </tr>

I have something like this. I want to make "Package Recap" invisible when the page is loaded. It is in the . Please help me out. Thanks!

+1  A: 

in your .aspx markup:

<div id="DivServerControl" runat="server" class="reusableBlueContent"> some stuff </div>

in your code behind:

protected override void OnLoad(Object sender)
{
     DivServerControl.Visible = false;
}
matt-dot-net
just put runat="server" and id="SOMEID" on whatever element you want to hide
matt-dot-net
Awesome Matt!!! Thanks so much!
Ram