Login  
Search All Forums
Dart Home | PowerWEB LiveControls for ASP.NET | Custom Development Reply | PowerWEB LiveControls for ASP.NET Topics | Forums   
AuthorForum: PowerWEB LiveControls for ASP.NET
Topic: setting panel visibility on Page_Load
th0m45

From: Ickford, United Kingdom
Posts: 5
Member Since: 04/20/07
posted May 17, 2007 5:30 AM

I have a LivePanel which I am trying to set the visibility as false when the page loads. There is then a RadioButtonList with which the user can turn the panels visibility on and off.

The postback from the Radios seems to work fine with changing the panels visibility, but it won't hide the panel when the page loads.

Why?
K M Drake



From: Utica, NY USA
Posts: 3406
Member Since: 07/14/00
posted May 17, 2007 9:07 AM

Hi,
I guess I do not understand the scenario.

When I place a LivePanel on the webform and set its Visible property to false, it does not appear on page load.

What do I need to do differently to see the problem?

Thanks,
-ken
th0m45

From: Ickford, United Kingdom
Posts: 5
Member Since: 04/20/07
posted May 17, 2007 9:13 AM

Hi Ken,

When I set the Visible property of my LivePanel tp false in the Page_Load it still displays. I am also having a problem with LiveTextBoxes also being visible when set to false on loading a page.

T
K M Drake



From: Utica, NY USA
Posts: 3406
Member Since: 07/14/00
posted May 17, 2007 3:25 PM

Hi,
Please tell me what needs to be changed in the code below to see the problem.

Thanks,
-ken

protected void Page_Load(object sender, EventArgs e)
{
  if (!this.IsPostBack)
  {
    //Controls start off hidden
    LivePanel1.Visible = false;
    LiveTextBox1.Visible = false;
  }
}

protected void LiveButton1_Click(object sender, EventArgs e)
{
  //Button shows and hides the controls
  LivePanel1.Visible = !LivePanel1.Visible;
  LiveTextBox1.Visible = !LiveTextBox1.Visible;
}
th0m45

From: Ickford, United Kingdom
Posts: 5
Member Since: 04/20/07
posted May 18, 2007 4:32 AM

Hi Ken,

I have probably over complicated the issue in my first post...

I have code below, but when I load the page the Panel is visible.

protected void Page_Load(object sender, EventArgs e)
{
  if (!Page.IsPostBack)
  {
    //Controls start off hidden
    LivePanel1.Visible = false;
  }
}

The same problem applies when I try with a LiveTextBox.Visible = false it still displays.

Tom
K M Drake



From: Utica, NY USA
Posts: 3406
Member Since: 07/14/00
posted May 18, 2007 9:59 AM

Hi,
Ok, are you using the latest version of LiveControls?
What browsers show this problem?
What version of VS.NET are you using?

Thanks,
-ken
th0m45

From: Ickford, United Kingdom
Posts: 5
Member Since: 04/20/07
posted May 18, 2007 10:07 AM

Hi Ken

I am using live controls version 1.6.0.8
Visual Studio 2005 v. 8.0.50727.42
.NET Framework v. 2.0.50727

I am experiencing the problem in Firefox 2.0.0.3 and Internet Explorer v. 7.0.5450.4

Thanks,
Tom
K M Drake



From: Utica, NY USA
Posts: 3406
Member Since: 07/14/00
posted May 21, 2007 3:07 PM

Hi,
Ok, it looks like a problem with the beta version you are using.

I can send you a more recent beta version, in which the problem does not occur, if you like.

-ken
Reply | PowerWEB LiveControls for ASP.NET Topics | Forums   
This site is powered by PowerTCP WebServer Tool PowerTCP WebServer for ActiveX