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: Mon, 13 Aug 2007 07:50:21 -0700,    posted on: microsoft.public.dotnet.framework.aspnet        back       

Thread Index
  1    rowe_newsgroups
          2    bruce barker
          3    rowe_newsgroups
          4    rowe_newsgroups


Web Parts - Incremental Display?   
On our local intranet site it has been suggested to have customizable
content on the start page. Most of the content already exists as user
controls, so I'm all set there, the problem is now the loading times.
Many of the to-be webparts perform long running (7 to 10 seconds)
database queries which will prevent the page from displaying until
they are finished.

So my question is, is there a quick way to load the page first, and
then load the content of the webparts? Sort of like pageflakes.com
does?

Thanks In Advance!

Seth Rowe
Date:Mon, 13 Aug 2007 07:50:21 -0700   Author:  

Re: Web Parts - Incremental Display?   
you have two options:

1) use ajax to load the parts.
2) use iframes

either approach will require some rewrite of the page.

-- bruce (sqlwork.com)

rowe_newsgroups wrote:

> On our local intranet site it has been suggested to have customizable
> content on the start page. Most of the content already exists as user
> controls, so I'm all set there, the problem is now the loading times.
> Many of the to-be webparts perform long running (7 to 10 seconds)
> database queries which will prevent the page from displaying until
> they are finished.
> 
> So my question is, is there a quick way to load the page first, and
> then load the content of the webparts? Sort of like pageflakes.com
> does?
> 
> Thanks In Advance!
> 
> Seth Rowe
> 
Date:Mon, 13 Aug 2007 10:19:49 -0700   Author:  

Re: Web Parts - Incremental Display?   
On Aug 13, 1:19 pm, bruce barker  wrote:

> you have two options:
>
> 1) use ajax to load the parts.
> 2) use iframes
>
> either approach will require some rewrite of the page.
>
> -- bruce (sqlwork.com)
>
> rowe_newsgroups wrote:
> > On our local intranet site it has been suggested to have customizable
> > content on the start page. Most of the content already exists as user
> > controls, so I'm all set there, the problem is now the loading times.
> > Many of the to-be webparts perform long running (7 to 10 seconds)
> > database queries which will prevent the page from displaying until
> > they are finished.
>
> > So my question is, is there a quick way to load the page first, and
> > then load the content of the webparts? Sort of like pageflakes.com
> > does?
>
> > Thanks In Advance!
>
> > Seth Rowe


I've been looking at AJAX, the problem is I don't know how to get it
to not prevent the page from loading. I'm experimenting with the
DynamicPopulateExtender, but since I'm using through a UserControl and
not a Page I can't seem to get it working.

Also could you elaborate a bit on the iframes approach? I'm not sure
how to use them for this?

Thanks,

Seth Rowe
Date:Mon, 13 Aug 2007 10:41:12 -0700   Author:  

Re: Web Parts - Incremental Display?   
On Aug 13, 1:41 pm, rowe_newsgroups  wrote:

> On Aug 13, 1:19 pm, bruce barker  wrote:
>
>
>
> > you have two options:
>
> > 1) use ajax to load the parts.
> > 2) use iframes
>
> > either approach will require some rewrite of the page.
>
> > -- bruce (sqlwork.com)
>
> > rowe_newsgroups wrote:
> > > On our local intranet site it has been suggested to have customizable
> > > content on the start page. Most of the content already exists as user
> > > controls, so I'm all set there, the problem is now the loading times.
> > > Many of the to-be webparts perform long running (7 to 10 seconds)
> > > database queries which will prevent the page from displaying until
> > > they are finished.
>
> > > So my question is, is there a quick way to load the page first, and
> > > then load the content of the webparts? Sort of like pageflakes.com
> > > does?
>
> > > Thanks In Advance!
>
> > > Seth Rowe
>
> I've been looking at AJAX, the problem is I don't know how to get it
> to not prevent the page from loading. I'm experimenting with the
> DynamicPopulateExtender, but since I'm using through a UserControl and
> not a Page I can't seem to get it working.
>
> Also could you elaborate a bit on the iframes approach? I'm not sure
> how to use them for this?
>
> Thanks,
>
> Seth Rowe


I finally settled on a solution that I deem "acceptable." I decided to
use the timer/update panel pair and have the timer fire off my server
side code 1 millisecond after the page loads. This code does the long
running db queries and loads the results into the usercontrol.

One more question though (if anyones still monitoring this thread), is
that the webparts seem to load synchronously, the first fires it's
timer and loads. After it's finished the second one fire's it's event
and loads, etc. Is there any way to get these to truly run
asynchronously? As in have all the timer fire the tick event, and all
start populating at the same time?

Thanks,

Seth Rowe
Date:Wed, 15 Aug 2007 03:47:18 -0700   Author:  

Google
 
Web dotnetnewsgroup.com


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