Brad,
I wouldn't go the iFrame route myself. You can certainly display the page in
the panel.
Put a literal control into the panel and then get the html code like this:
'---Create the request
Dim WebRequest As System.Net.WebR equest
WebRequest = System.Net.WebR equest.Create(N ew Uri(CurrentLink ))
'---Optionally set the timeout (if you don't the default timeout will be
used)
WebRequest.Time out = 2000
'---Get the response produced by the request
Dim Response As System.Net.WebR esponse = WebRequest.GetR esponse
'---Download the page content into a stream
Dim Stream As System.IO.Strea m = Response.GetRes ponseStream
'---Place the stream into a stream reader
Dim StreamReader As New System.IO.Strea mReader(Stream)
'---Read the stream into a string object
Dim Html As String = StreamReader.Re adToEnd
'---Cleanup for the next request
Stream.Close()
StreamReader.Cl ose()
Literal1.Text = Html
Now, you may need to parse the html to remove html, head, and/or form tags
depending on what the html you are receiving contains. There are, of course,
tags that could mess up your page's display. But I use this technique to
display newsletters saved as html pages in an archive site and the
surrounding site's format is just fine in every browser. You'll just have to
test to see if any included tags mess things up and remove them from the
Html string if they do...
--
Sincerely,
S. Justin Gengo, MCP
Web Developer / Programmer
www.aboutfortunate.com
"Out of chaos comes order."
Nietzsche
"Sreejith Ram" <Sr*********@di scussions.micro soft.com> wrote in message
news:4D******** *************** ***********@mic rosoft.com...
ASP:PANEL is a <DIV> tag when rendered to HTML and <DIV> cannot host
another
HTML page. Adding an IFRAME to the right panel may be an option. IFRAME
can
host new HTML/ASP/ASPX pages.
"Brad" wrote:
I have a form where I have a treeview control in the left sidebar and
then a
panel next to it in the other pane. Based on user selection from the
tree
view, I would like the panel to display a certain html page that was
created
in Word as html. Currently I do have the treeview's nodes pointing to a
URL,
however for design asthetics, I would love to have the html page just
open in
this panel.
How would I got about doing this and thanks for the help.