DotNetNewsgroup.com  
web access to complete list of Microsoft.NET newsgroups
   home   |   control panel login   |   archive  |  
 
  carried group
academic
adonet
aspnet
aspnet.announcements
aspnet.buildingcontrols
aspnet.caching
aspnet.datagridcontrol
aspnet.mobile
aspnet.security
aspnet.webcontrols
aspnet.webservices
assignment_manager
datatools
dotnet.distributed_apps
dotnet.general
dotnet.myservices
dotnet.nternationalization
dotnet.scripting
dotnet.security
dotnet.vjsharp
dotnet.vsa
dotnet.xml
dotnetfaqs
framework
framework.clr
framework.compactframework
framework.component_services
framework.controls
framework.databinding
framework.drawing
framework.enhancements
framework.interop
framework.odbcnet
framework.performance
framework.remoting
framework.sdk
framework.setup
framework.webservices
framework.windowsforms
framework.wmi
frwk.windowsforms.designtime
lang.csharp
lang.jscript
lang.vb
lang.vb.controls
lang.vb.data
lang.vb.upgrade
lang.vc
lang.vc.libraries
  
 
start date: Thu, 2 Aug 2007 14:02:01 -0700,    posted on: microsoft.public.dotnet.framework.aspnet        back       

Thread Index
  1    john pryor
          2    Eliyahu Goldin
                 3    john pryor


Hidden Panel Problem   
I have a aspx web page with several hidden(visible=false) panels on it. 
Depending on the task the user is going to perform I show or hide the 
appropriate panel. What I'm discovering is that my controls on the panels are 
not firing their events if the panel was initially hidden when the page 
loaded. 

For instance, i have a panel with a button and a 'onclick' event defined. 
The onclick will only work if the panel is intially visible when the page 
loads but not if the panel was hidden when the page loaded. I also noticed 
this with my drop down list not loading list items either.

Is this behavior by design? If so what should I do to get the events to fire 
after making a panel visible after it was hidden initially? Any help is 
greatly appreciated!!!
-- 
John Pryor
Date:Thu, 2 Aug 2007 14:02:01 -0700   Author:  

Re: Hidden Panel Problem   
John,

Yes, it is by design. Server controls with Visible=false don't render to the
client and, consequentially, don't come back in postbacks.

Leave Visible=true and hide the panels with css rule display:none.

-- 
Eliyahu Goldin,
Software Developer & Consultant
Microsoft MVP [ASP.NET]
http://msmvps.com/blogs/egoldin


"john pryor"  wrote in message
news:50ABD52B-5632-40B0-A678-A0982F4B7E15@microsoft.com...

> I have a aspx web page with several hidden(visible=false) panels on it.
> Depending on the task the user is going to perform I show or hide the
> appropriate panel. What I'm discovering is that my controls on the panels
are
> not firing their events if the panel was initially hidden when the page
> loaded.
>
> For instance, i have a panel with a button and a 'onclick' event defined.
> The onclick will only work if the panel is intially visible when the page
> loads but not if the panel was hidden when the page loaded. I also noticed
> this with my drop down list not loading list items either.
>
> Is this behavior by design? If so what should I do to get the events to
fire
> after making a panel visible after it was hidden initially? Any help is
> greatly appreciated!!!
> -- 
> John Pryor
Date:Fri, 3 Aug 2007 09:24:19 +0200   Author:  

Re: Hidden Panel Problem   
Thanks, that was a lot of help! Everything is working as expected now.
-- 
John Pryor


"Eliyahu Goldin" wrote:


> John,
> 
> Yes, it is by design. Server controls with Visible=false don't render to the
> client and, consequentially, don't come back in postbacks.
> 
> Leave Visible=true and hide the panels with css rule display:none.
> 
> -- 
> Eliyahu Goldin,
> Software Developer & Consultant
> Microsoft MVP [ASP.NET]
> http://msmvps.com/blogs/egoldin
> 
> 
> "john pryor"  wrote in message
> news:50ABD52B-5632-40B0-A678-A0982F4B7E15@microsoft.com...
> > I have a aspx web page with several hidden(visible=false) panels on it.
> > Depending on the task the user is going to perform I show or hide the
> > appropriate panel. What I'm discovering is that my controls on the panels
> are
> > not firing their events if the panel was initially hidden when the page
> > loaded.
> >
> > For instance, i have a panel with a button and a 'onclick' event defined.
> > The onclick will only work if the panel is intially visible when the page
> > loads but not if the panel was hidden when the page loaded. I also noticed
> > this with my drop down list not loading list items either.
> >
> > Is this behavior by design? If so what should I do to get the events to
> fire
> > after making a panel visible after it was hidden initially? Any help is
> > greatly appreciated!!!
> > -- 
> > John Pryor
> 
> 
> 
Date:Fri, 3 Aug 2007 08:14:01 -0700   Author:  

Google
 
Web dotnetnewsgroup.com


COPYRIGHT ?2005, EUROFRONT WORLDWIDE LTD., ALL RIGHT RESERVE  |   Contact us