473,804 Members | 3,674 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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(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
4 962
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
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
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 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 #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.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 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 #5

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

Similar topics

3
1972
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 another app domain (within the same process), do I need to use marshalling to communicate with it or is...
8
2027
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
1
1056
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 />
2
1261
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 από την διεύθυνση)
2
1213
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!! kes
1
2027
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 calls a function which displays table_1 by setting table_1's style display: block and hides tables...
1
1861
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 browser slower than doing it through dom to display the same html objects on the page?
2
1782
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 document head, as well as element-specific
1
2284
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
0
9572
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 synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10562
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...
1
10303
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
7608
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
6845
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
5508
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
5639
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4282
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
3803
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.