Rank: Member Groups: Member
Joined: 5/31/2008 Posts: 25
|
Hi guys,
I've a really simple question. =)
I'm implementing an CallbackPanel in my website. The CallbackPanel has some default contents. I need to initialize the CallbackPanel invisible or with height/width = 0 at the first load.
But, i'm having some problems: 1) If I set the CallbackPanel to invisible, the Callback will not work. This is not a option; 2) If I set the CallbackPanel width and height to 0 (zero), when page loads, the CallbackPanel assumes the size of my "default contents". I think that this occurs because the CallbackPanel is a html table. I try to set the initial size of this table by javascript in body.onload, but with no sucess.
Any idea?
tks in advance. bob.
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Hi, You can try to use style="display:none" to hide an element without setting its Visible to false. The server side equivalent would be something like this:
Code: C#
Panel1.Style["display"] = "none";
Hope this helps. Thanks
|
Rank: Member Groups: Member
Joined: 5/31/2008 Posts: 25
|
Thanks for reply! I'll try this approach.
bob.
|