objects being rendered

T

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

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

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

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
 
K

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,009
Latest member
GidgetGamb

Latest Threads

Top