Rendering last

  • Thread starter Rex the Strange
  • Start date
R

Rex the Strange

Does anyone know of a way that I can ensure that a particular control
is rendered to the page last, regardless of when it was added to the
control collection without having to subclass the page object?

tia,
rts
 
B

Brian Cryer

Rex the Strange said:
Does anyone know of a way that I can ensure that a particular control
is rendered to the page last, regardless of when it was added to the
control collection without having to subclass the page object?

Put it last on the page (or perhaps in the pre-render you could move it to
be the last control?)

Seriously though, consider that when a control is rendered it generates html
and controls will be rendered in the order that they are required to
generate the html for a page. So if you want a control to be rendered last
then it needs to be the last control on the page.

What are you trying to achieve? There may be a better way of doing it.
 

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

Forum statistics

Threads
473,769
Messages
2,569,579
Members
45,053
Latest member
BrodieSola

Latest Threads

Top