Mixing static & dynamic content on the same page
Posted on 2004-08-19
I have a static ASPX page with some ASP edit boxes, labels, etc .. I now want to put some dynamicly generated data inbetween the components.
I have tried the follwing:
Create ASCX component which generates the dynamic data on it's Page_Load()
It uses the Response.Write() to generate the dynamic content. I do not use Response.End() here so that the whole page can complete
I then put the component onto my ASPX page between the components I want it to display ...
This does not work .. .
What id does is it generates the dynamic content on top of the page and then the rest of the page... eg:
<table> ... </table>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
so obviously this messes up my whole layout ...
How can I specify the exact position of my dynamic code ...