By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,985 Members | 1,861 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,985 IT Pros & Developers. It's quick & easy.

ASP.NET: Send web page in pieces with correct html rendered?

P: 9
Hi

I want to send my aspx page in peices. I send a html div tag first in the page Init handler:

string div = @"<div>fisrt div</div>";

Response.Write(div);

Response.Flush();

And after that leave the page to execute normally.

The result is that my div element is placed before the DOCTYPE otside the html and body tags. How can I do it so that the html rendered will be correct? It's important to send the page in pieces.

10x
Apr 19 '07 #1
Share this question for a faster answer!
Share on Google+

Post your reply

Sign in to post your reply or Sign up for a free account.