objects being rendered | Bytes (2024)

Home Posts Topics Members FAQ

tfs

I thought that objects are not rendered until the Page_PreRender
event?

I have a textbox object and when I do a trace.warn(obje ct.text) in the
Page Init event - it has the correct text?

I would have thought I wouldn't get the correct data until
Page_PreRender.

How come?

Thanks,

Tom.

Nov 18 '05 #1

Subscribe Reply

4 objects being rendered | Bytes (1) 949 objects being rendered | Bytes (2)

Scott Allen

Hi Tom:

The objects may have all the correct properties during Init, but they
do not write out any HTML based on those properties until they render.

--
Scott
http://www.OdeToCode.com

On 13 Jul 2004 00:02:56 -0500, tf*@dslextreme-dot-com.no-spam.invalid
(tfs) wrote:

I thought that objects are not rendered until the Page_PreRender
event?

I have a textbox object and when I do a trace.warn(obje ct.text) in the
Page Init event - it has the correct text?

I would have thought I wouldn't get the correct data until
Page_PreRender .

How come?

Thanks,

Tom.

Nov 18 '05 #2

Kevin Spencer

Rendering is the process of writing the HTML of a Control to the Response
Output Stream. It has nothing to do with the properties of the objects that
exist on the server. The objects are created initially, have their
properties set, process postback data, raise and handle events, etc., and
then are rendered back to the client.

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.

"tfs" <tf*@dslextre me-dot-com.no-spam.invalid> wrote in message
news:40******** **@Usenet.com.. .

I thought that objects are not rendered until the Page_PreRender
event?

I have a textbox object and when I do a trace.warn(obje ct.text) in the
Page Init event - it has the correct text?

I would have thought I wouldn't get the correct data until
Page_PreRender.

How come?

Thanks,

Tom.


Nov 18 '05 #3

Thomas Scheiderich

I know that you used the Page_PreRender event to save Global variables
(viewstate).
Why else would I use this event?
Thanks,
Tom

"Kevin Spencer" <ks******@takem pis.com> wrote in message
news:#5******** ******@TK2MSFTN GP10.phx.gbl...

Rendering is the process of writing the HTML of a Control to the Response
Output Stream. It has nothing to do with the properties of the objectsthat exist on the server. The objects are created initially, have their
properties set, process postback data, raise and handle events, etc., and
then are rendered back to the client.

--
HTH,
Kevin Spencer
.Net Developer
Microsoft MVP
Big things are made up
of lots of little things.

"tfs" <tf*@dslextre me-dot-com.no-spam.invalid> wrote in message
news:40******** **@Usenet.com.. .

I thought that objects are not rendered until the Page_PreRender
event?

I have a textbox object and when I do a trace.warn(obje ct.text) in the
Page Init event - it has the correct text?

I would have thought I wouldn't get the correct data until
Page_PreRender.

How come?

Thanks,

Tom.



Nov 18 '05 #4

Kevin Spencer

Hi Tom,

Why else would I use this event?
You would use that Event Handler to do any processing which would best be
done at that point in the Page's Execution Lifecycle. That's about the best
I can say to such a broad question.

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.

"Thomas Scheiderich" <tf*@deltanet.c om> wrote in message
news:10******** *****@corp.supe rnews.com... I know that you used the Page_PreRender event to save Global variables
(viewstate).
Why else would I use this event?
Thanks,
Tom

"Kevin Spencer" <ks******@takem pis.com> wrote in message
news:#5******** ******@TK2MSFTN GP10.phx.gbl...

Rendering is the process of writing the HTML of a Control to theResponse Output Stream. It has nothing to do with the properties of the objects

that
exist on the server. The objects are created initially, have their
properties set, process postback data, raise and handle events, etc.,and then are rendered back to the client.

--
HTH,
Kevin Spencer
.Net Developer
Microsoft MVP
Big things are made up
of lots of little things.

"tfs" <tf*@dslextre me-dot-com.no-spam.invalid> wrote in message
news:40******** **@Usenet.com.. .

I thought that objects are not rendered until the Page_PreRender
event?

I have a textbox object and when I do a trace.warn(obje ct.text) in the
Page Init event - it has the correct text?

I would have thought I wouldn't get the correct data until
Page_PreRender.

How come?

Thanks,

Tom.




Nov 18 '05 #5

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

Similar topics

3 1963

Do ActiveX objects run in their own process?

by: Brett |last post by:

Do ActiveX objects run in their own process or app domain? Referecing this article http://www.codeproject.com/buglist/iefix.asp, he gets events from ActiveX object to his IE object via marshalling. I thought marshalling was use for communication between processes. General comments to clarify are welcome. If something is running in...

C# / C Sharp

8 2017

Can I pass Clietside Objects

by: Murali Inguva |last post by:

Hi Guys, Couple Questions 1. Is there any way that i can pass client Side Objects to Server Side. 2. Can i validate the data of serverside text boxes / combo box in client side? If you know the answers please let me know. Thanks

ASP.NET

1 1045

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

by: e |last post by:

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" %> <html> <body> <form> <include:MyUserControl /> HTML, text, etc... <asp:Label1 />

ASP.NET

2 1250

Control objects: HTML or ASP.NET

by: Apostolis K. |last post by:

When should I use HTML Control objects (HTML Tags + "runat" and "id" attirbutes) and when ASP.NET Control Objects (<asp:servercontrol> tags) in my ASP.Net Application. Is anyone of them more effective in some tasks or whichever I use is the same thing? -- Áðïóôüëçò Ê. (áöáéñÝóôå ôï äéðëü k áðü ôçí äéåýèõíóç)

ASP.NET

2 1181

default style for specific objects

by: Kurt Schroeder |last post by:

Is there a way to set the default style for all textboxes on a page, and a different one for all labels? Like the way the body style controls all body text. 1. given: I have a style called .smlbl for all lables and smtxt for all textboxes. 2. where in the document would i set it for the default? I hope this is clear..... thanks ....again!!...

ASP.NET

1 2005

HTTPRequest problems updating 'hidden' objects?

by: Gunnar |last post by:

I am finding some unusual behavior with techniques I am using to show/hide/update data without having to refresh the page. I'm quite sure it's developer ignorance on my part and would be grateful for any suggestions. My page has 10 tables with their visibility controlled by the user making a menu selection. For example, selecting menu_1...

Javascript

1 1840

straight html or dom generated html objects faster?

by: anagai |last post by:

Im wondering if generating html objects such as tabels and rows in javascript is faster than typing the html directly? Seems when you do it in javascript you have to download alot of code and would slow down displaying the page. while if you just type the html, it requires less bandwidth and display faster? is parsing html to display in...

Javascript

2 1770

Part---Not Whole--of Stylesheet Not Rendered On One Server, But Fully Rendered On Another

by: Patient Guy |last post by:

I don't think I have ever encountered something like this before. On a Windows XP running Apache 2.0.53 I do my page development (XP machine). I then upload the stuff to a Linux/Redhat/Fedora running Apache 2.0.54 (Linux machine) I have a page that features an external stylesheet, as well as styling in the <style> element area of the...

HTML / CSS

1 2269

CSS 2.1 "Rendered Content"

by: dave8421 |last post by:

Hi, I'm trying to make sense of the definition for "Rendered Content" in current CR for CSS 2.1 Is rendered content what is displayed on the particular media or device? from the definitions, I got the impression that the rendered content is referring to the source document and not the particular

HTML / CSS

7457

What is ONU?

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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...

General

7391

Changing the language in Windows 10

by: Hystou |last post by:

Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...

Windows Server

7651

Problem With Comparison Operator <=> in G++

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. ...

C / C++

7802

Maximizing Business Potential: The Nexus of Website Design and Digital Marketing

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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...

Online Marketing

5962

AI Job Threat for Devs

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...

Career Advice

1 5320

Access Europe - Using VBA to create a class based on a table - Wed 1 May

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...

Microsoft Access / VBA

4941

Couldn’t get equations in html when convert word .docx file to html file in C#.

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...

C# / C Sharp

3443

Trying to create a lan-to-lan vpn between two differents networks

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...

Networking - Hardware / Configuration

3438

Windows Forms - .Net 8.0

by: adsilva |last post by:

A Windows Forms form does not have the event Unload, like VB6. What one acts like?

Visual Basic .NET

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

To disable or enable advertisem*nts and analytics tracking please visit the page.

objects being rendered | Bytes (2024)
Top Articles
Latest Posts
Article information

Author: Chrissy Homenick

Last Updated:

Views: 5533

Rating: 4.3 / 5 (74 voted)

Reviews: 89% of readers found this page helpful

Author information

Name: Chrissy Homenick

Birthday: 2001-10-22

Address: 611 Kuhn Oval, Feltonbury, NY 02783-3818

Phone: +96619177651654

Job: Mining Representative

Hobby: amateur radio, Sculling, Knife making, Gardening, Watching movies, Gunsmithing, Video gaming

Introduction: My name is Chrissy Homenick, I am a tender, funny, determined, tender, glorious, fancy, enthusiastic person who loves writing and wants to share my knowledge and understanding with you.