Pete2003
asked on
Mixing static & dynamic content on the same page
Hi All,
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" >
<HTML>
...
so obviously this messes up my whole layout ...
How can I specify the exact position of my dynamic code ...
Thanks
Peter
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" >
<HTML>
...
so obviously this messes up my whole layout ...
How can I specify the exact position of my dynamic code ...
Thanks
Peter
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.