Absolutely correct, it would.
In this case, I'd put something in my code that checked for that and
stripped it down to whatever is inside of the body, perhaps taking some of
the body arguments (like bgcolor and the like) and making a style for the
div out of it. Set the appropriate properties on the div and load the
InnerHtml and away you go.
Your solution, with a web control, might be a better one in this case,
however. In my solution, I'd expect that the HTML coming out of the DB is
such that it's ready to be placed in the div.
Christopher
"John Saunders" <> wrote in message
news:...
> Christopher,
>
> I wonder if your method might not have a problem in some browsers when the
> imported HTML file is complete - !DOCTYPE, <HTML>, <HEAD> and <BODY>? The
> <iframe> takes care of that problem.
>
> BTW, when I mentioned user controls, I meant that the user controls should
> not have all the above HTML header junk.
> --
> John Saunders
> Internet Engineer
>
>
> "Christopher Ambler" <> wrote in message
> news:...
> > Or, alternatively, use a "div" tag, runat server, and set the InnerHtml
> > property in the load function.
> >
> > Christopher
> >
> > "John Saunders" <> wrote in message
> > news:...
> > > "Brian Henry" <> wrote in message
> > > news:...
> > > > I have a page writen as an aspx page, now this is a template... i
want
> > to
> > > be
> > > > able to make HTML files that will show up in the document are of the
> > aspx
> > > > page based on a database index... how do i render the HTML file into
> the
> > > > aspx page's main text area? thanks! (remember this is a template
like
> > > > cnn.com or something, where the HTML file would be the story)
> > >
> > > One way would be to make these HTML files be user controls, then use
> > > LoadControl to load them into your template page.
> > >
> > > Another way would be to use an <iframe> and set the src attribute to
> point
> > > to the html page.
> > > --
> > > John Saunders
> > > Internet Engineer
> > >
> > >
> > >
> >
> >
>
>