Thanks, I just came across an article about this as an option. It will
def. work!
____________________________
Steven K. Lewis
Website Nation, LLC
Website Development Services
www dot Website Nation dot com
On 8/12/2005 7:14 PM, Brock Allen wrote:
> <asp:Panel id=_myPanel runat=server>.....nested stuff in
> here.....</asp:Panel>
>
> Then in code, say in Page_Load:
>
> void Page_Load(...)
> {
> bool MyCondition = DoSomeLogic();
> _myPanel.Visible = MyCondition;
> }
>
>
> -Brock
> DevelopMentor
> http://staff.develop.com/ballen
>
>
>
>> In Classic ASP, if I wanted to show or hide a section of a page, I
>> could simply do:
>>
>> <% If Variable = X Then %>
>>
>> <p> Html or anything else to hide here </p>
>>
>> <% End If %>
>>
>> What is the best way to do this in ASP.Net? I have come across
>> everything from toggling the display of a <div> to setting the value
>> of a label.
>>
>
>
>