473,326 Members | 2,124 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,326 software developers and data experts.

postback question, is the order in which objects are rendered and returned controllable?

e
I'm not really sure how to eloquently ask this, so I'll just demonstrate it.
Let's say I've got an aspx page, very pseudo for the sake of argument:

<%@ Page Codebehind="index.aspx.vb" [etc...] %>
<html>
<body>
<form>
<include:MyUserControl />
HTML, text, etc...
<asp:Label1 />
<asp:Label2 />
<asp:Textbox />
<asp:SubmitButton />
<asp:SpecialLabel />
</form>
</body>
</html>

On postback, some server-side stuff is going to happen that can generate a
LOT of HTML data - lots of rendered table web controls. This HTML data is
put into SpecialLabel.Text, and it can take a while to physically come
across the wire on dial-up (or even a lower-end DSL, if it's big enough).
That's ok, data is good; but unfortuantely the user is stuck with a blank IE
6 white-screen while the data comes across, and that's not too
professional-looking. I don't need anything too fancy, I just want to
somehow control postback in this order...

<html>
<body>
<form>
<MyRenderedUserControl>
<img>, text, blah blah, <img>, etc
<RenderedLabel1>
<RenderedLabel2>
<RenderedTextBox>
<RenderedButton>

....response.flush?

....so that it's visible on the client and then this section...

<RenderedSpecialLabel>
</form>
</body>
</html>

....response.flush?

So that my "page" is at least somewhat visible (and I could maybe display an
animated 'please wait' whirlygig) as all that table data is coming across.
The point is I don't want the user to just stare at a white screen the whole
time SpecialLabel is being sent to them, I'd rather they stare at the
originating page with a please wait message. Is that possible?
Nov 18 '05 #1
1 1041
e
This seems to be giving me what I was looking for, in case anyone dreams up
doing something similar and finds this post:

<html>
<body>
<% Response.Buffer = True %>
<form>
<include:MyUserControl />
HTML, text, etc...
<asp:Label1 />
<asp:Label2 />
<asp:Textbox />
<asp:SubmitButton />
</form>
<% Response.Flush %>
<asp:SpecialLabel />
</body>
</html>
"e" <e@e.com> wrote in message news:k6********************@speakeasy.net...
I'm not really sure how to eloquently ask this, so I'll just demonstrate it. Let's say I've got an aspx page, very pseudo for the sake of argument:

<%@ Page Codebehind="index.aspx.vb" [etc...] %>
<html>
<body>
<form>
<include:MyUserControl />
HTML, text, etc...
<asp:Label1 />
<asp:Label2 />
<asp:Textbox />
<asp:SubmitButton />
<asp:SpecialLabel />
</form>
</body>
</html>

On postback, some server-side stuff is going to happen that can generate a
LOT of HTML data - lots of rendered table web controls. This HTML data is
put into SpecialLabel.Text, and it can take a while to physically come
across the wire on dial-up (or even a lower-end DSL, if it's big enough).
That's ok, data is good; but unfortuantely the user is stuck with a blank IE 6 white-screen while the data comes across, and that's not too
professional-looking. I don't need anything too fancy, I just want to
somehow control postback in this order...

<html>
<body>
<form>
<MyRenderedUserControl>
<img>, text, blah blah, <img>, etc
<RenderedLabel1>
<RenderedLabel2>
<RenderedTextBox>
<RenderedButton>

...response.flush?

...so that it's visible on the client and then this section...

<RenderedSpecialLabel>
</form>
</body>
</html>

...response.flush?

So that my "page" is at least somewhat visible (and I could maybe display an animated 'please wait' whirlygig) as all that table data is coming across.
The point is I don't want the user to just stare at a white screen the whole time SpecialLabel is being sent to them, I'd rather they stare at the
originating page with a please wait message. Is that possible?

Nov 18 '05 #2

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

Similar topics

5
by: Matthew Louden | last post by:
I created simple ASP.NET web application to test how AutoPostBack property in a web control works. I set AutoPostBack property to be true of a web control. When I run the application, here's the...
3
by: mca | last post by:
Hi everyone, I'm new to asp.net and i have a question about separating the html code from the programming code. i have an unknown numbers of entries in my table. I want to make a hyperlink...
5
by: Michael Moreno | last post by:
Hello, In a class I have this code: public object Obj; If Obj is a COM object I would like to call in the Dispose() method the following code: ...
2
by: Mike P | last post by:
I have added a couple of buttons to my ASP.NET 2.0 page. which both are meant to do pretty simple things, a Back button and a Submit data button. But I get this error whenever I click either of...
1
by: Timbo | last post by:
Hi all, This is my first message here so i'll try and include all the information that will help you help me out, if possible. Basically I am using C# in ASP.NET 2.0 and have a Repeater...
3
by: teo | last post by:
Mozilla error on postback and validation ----------- A Button causes a Listbox to desappear. If no item has been selected on the Listbox, all is OK. If one or more items are selected,
2
by: Nathan Sokalski | last post by:
I have a DataList in which the ItemTemplate contains two Button controls that use EventBubbling. When I click either of them I receive the following error: Server Error in '/' Application....
2
by: John Kotuby | last post by:
Hi guys, I am converting a rather complicated database driven Web application from classic ASP to ASP.NET 2.0 using VB 2005 as the programming language. The original ASP application works quite...
9
by: 200dogz | last post by:
Hi guys, I want to have a button which opens up a new window when pressed. <asp:Button ID="Button1" runat="server" Text="Open new window" /> ... Button1.Attributes.Add("OnClick",
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

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.