How to delay the Response.Write output after controls are rendered

  • Thread starter Thread starter Michael
  • Start date Start date
M

Michael

Hi,
When I call Response.Write(), the output message will be
the first line in the rendered HTML.
Can I make Response.Write() message output after all
controls have rendered?

Thanks!
 
In ASP.NET, this is done by adding the appropriate control (such as a label,
a placeholder or whatever best fits) at the proper location...
 
Hi,
When I call Response.Write(), the output message will be
the first line in the rendered HTML.
Can I make Response.Write() message output after all
controls have rendered?

Thanks!

Usually you don't want to mix "control rendering" and "response.write".
Use Labels or Literals to add specific content in specific places.

Hans Kesting
 
override OnRender, call the base (which will cause all control to Render),
then do your Response.Write. A better solution would be to define an
htmlgeneric control where you want the output and set its innerHtml

-- bruce (sqlwork.com)
 

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

Back
Top