Author: LtCmdrData | Posted on: 11/29/2009 1:53:57 PM | Views : 279

Hello All.
Here is the issue. I have a web application that requires me to display htm pages in a DIV. I don't really want to use a iFrame but I cant seem to get the html disply correctly. The html pages are simple, ie CSS, tables Images and a <a> tag or two. ANy suggestion will help. Here is the current code that should get the html page and send it the the DIV.InnerHtml.
Dim page As String = GetPage(HttpContext.Current.Server.MapPath(".") & "\AdTemplates\FullAdDisplay_001.htm")

HTMLRendered.InnerHtml = page

    Function GetPage(ByVal pageUrl As String) As String
        Dim strContents As String
        Try
            Dim request As HttpWebRequest = WebRequest.Create(pageUrl)
            Dim respon ...

Go to the complete details ...