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

objects being rendered

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(object.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
4 942
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(object.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
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*@dslextreme-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(object.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
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******@takempis.com> wrote in message
news:#5**************@TK2MSFTNGP10.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 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*@dslextreme-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(object.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
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.com> wrote in message
news:10*************@corp.supernews.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******@takempis.com> wrote in message
news:#5**************@TK2MSFTNGP10.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 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*@dslextreme-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(object.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
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...
8
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...
1
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>...
2
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...
2
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...
1
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...
1
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...
2
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...
1
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...
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:
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
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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...
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...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
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,...

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.