473,387 Members | 1,641 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Buffering the output of multiple controls

Hi

I have a placeholder that has multiple controls that need to be loaded and
rendered to the user based on some user selections. I have to loop through
the choices that the user makes and then load the controls. I am doing this
in the protected override void Render(HtmlTextWriter writer) method.
protected override void Render(HtmlTextWriter writer)
{
foreach (Selection in UsersSelection)
{
switch(Selection)
{
case "Selection 1":
UserControl1 uc1 = Page.LoadControl("Control to be loaded") as UserControl1;
//Set user control properties
Panel.Control.Add(uc1);
case "Selection 2":
UserControl1 uc2 = Page.LoadControl("Control to be loaded") as UserControl1;
//Set user control properties
Panel.Control.Add(uc2);
case "Selection 3":
UserControl1 uc3 = Page.LoadControl("Control to be loaded") as UserControl1;
//Set user control properties
Panel.Control.Add(uc3);
:
:
}
}
base.Render(writer);
}
But I want the page to be displayed as soon as the data from one control has
been obtained. Is there any way to do this ? I tried setting the
Response.Buffer to false and then flushing the results. But what happens is
that all the controls are looped through and then the entire data is shown on
the page at the same time which causes the page to be blank for a some time.

Thanks a lot in advance for any help.
Jul 21 '05 #1
0 1095

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Shaun Jackman | last post by:
I'm reading from a tcpdump pipe. I want to receive one line from the pipe as soon as its available from tcpdump. Something is buffering the pipe though, so I am receiving nothing, then multiple...
2
by: MPowell | last post by:
Gents/Ladies, I'm doing (at least plan on ) lots of Reads and Writes across a communication channel. I'm told that for the 'receive side' it'd be prudent to implement a double buffering scheme to...
2
by: Dan Neely | last post by:
My dialog has groupboxes with slow to redraw controls, to improve the appearance I want to doublebuffer it. While I can use SetStyle() in the Dailogs constructor the setting change doesn't get...
2
by: ScottOnes | last post by:
Hi I have a placeholder that has multiple controls that need to be loaded and rendered to the user based on some user selections. I have to loop through the choices that the user makes and then...
3
by: ssoffline | last post by:
hi i have an app in which i can drop objects onto a form and move them, it consists of graphics (lines), i am using double buffering to avoid filckering in the parent control which is a panel,but...
11
by: japhy | last post by:
Is there a way to read a line (a series of characters ending in a newline) from a file (either by descriptor or stream) atomically, without buffering additional contents of the file?
15
by: jools | last post by:
I'm having trouble modifying some code written by someone else. The code is very dense and obscure but does work fine. However I need to insert a block of my own and I've hit what I assume is a...
2
by: Rudy Gevaert | last post by:
Hi, I have written an perl program that read from stdin: while(<STDIN>) { chomp do_it($_); } Data is fed to it via a pipe:
4
by: Grant Edwards | last post by:
When I ssh in to my Windows XP box and run Python apps, output from "print" and and "sys.stdout.write()" is being buffered so that none of the output shows up until the program exits. From...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.