473,835 Members | 1,988 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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="ind ex.aspx.vb" [etc...] %>
<html>
<body>
<form>
<include:MyUser Control />
HTML, text, etc...
<asp:Label1 />
<asp:Label2 />
<asp:Textbox />
<asp:SubmitButt on />
<asp:SpecialLab el />
</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.Te xt, 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>
<MyRenderedUser Control>
<img>, text, blah blah, <img>, etc
<RenderedLabel1 >
<RenderedLabel2 >
<RenderedTextBo x>
<RenderedButton >

....response.fl ush?

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

<RenderedSpecia lLabel>
</form>
</body>
</html>

....response.fl ush?

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 1056
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:MyUser Control />
HTML, text, etc...
<asp:Label1 />
<asp:Label2 />
<asp:Textbox />
<asp:SubmitButt on />
</form>
<% Response.Flush %>
<asp:SpecialLab el />
</body>
</html>
"e" <e@e.com> wrote in message news:k6******** ************@sp eakeasy.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="ind ex.aspx.vb" [etc...] %>
<html>
<body>
<form>
<include:MyUser Control />
HTML, text, etc...
<asp:Label1 />
<asp:Label2 />
<asp:Textbox />
<asp:SubmitButt on />
<asp:SpecialLab el />
</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.Te xt, 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>
<MyRenderedUser Control>
<img>, text, blah blah, <img>, etc
<RenderedLabel1 >
<RenderedLabel2 >
<RenderedTextBo x>
<RenderedButton >

...response.flu sh?

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

<RenderedSpecia lLabel>
</form>
</body>
</html>

...response.flu sh?

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
2049
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 sequences when I step through the program: 1. Page loaded to the browser 2. Page_Load method is called with non-postback event 3. The user has certain actions on a control 4. Page_Load method is called with postback event
3
1529
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 for every entry in my table. So i query the database and get for example 3 entries back. So in a while loop i can make 3 hyperlinks with response.write(.......) etc.
5
2521
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: System.Runtime.InteropServices.Marshal.ReleaseComObject(Obj);
2
5810
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 the buttons : Invalid postback or callback argument. Event validation is enabled using <pages enableEventValidation="true"/> in configuration or <%@ Page EnableEventValidation="true" %> in a page. For security purposes, this feature verifies...
1
17051
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 control in my aspx page with two image buttons, one for an edit command, another a delete command. Here is a cut down code fragment. ...
3
2763
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
2182
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. -------------------------------------------------------------------------------- Invalid postback or callback argument. Event validation is enabled using <pages enableEventValidation="true"/in configuration or <%@ Page EnableEventValidation="true"...
2
3932
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 well, so at times it is tempting just to port parts of it over mostly as-is. In fact, one MSDN article I read suggested using straight HTML wherever possible to make the app more efficient and less resource demanding. On one page there are 2...
9
4568
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
10815
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9348
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7770
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6970
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5640
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5808
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4435
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3999
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3094
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.