J
Jai
Hi All,
As When I am displaying my html page which contains images also inside
content placeholder with panel control.....it is only showing text and
not the Images.....................please suggest me...how can i do
this.....
I want to display html page(with images) inside a panel,and that panel
is in contentplaceholder(master page)...............
here is my code..........
........................
If Request.QueryString("page") Is Nothing Then
Server.Transfer("Default.aspx")
End If
Dim title As String = Request.QueryString("title").ToString()
Dim pageName As String = Request.QueryString("page")
Dim fullPath As String = pageName
Dim thegen As HtmlGenericControl = New HtmlGenericControl()
If (Not File.Exists(Server.MapPath(fullPath))) Then
Server.Transfer("Default.aspx")
End If
Dim rdr As StreamReader = Nothing
Try
rdr = New StreamReader(Server.MapPath(fullPath))
Catch
rdr.Close()
Server.Transfer("Default.aspx")
End Try
Dim content As Object = rdr.ReadToEnd()
rdr.Close()
thegen.InnerHtml = content(I think problem is here but not
getting it)
Me.Panel1.Controls.Add(thegen)
Me.Title = title
........................
possibly provide some reference code for that.....
plzzzz....I am in great need of your reply....
Waiting for reply..........
As When I am displaying my html page which contains images also inside
content placeholder with panel control.....it is only showing text and
not the Images.....................please suggest me...how can i do
this.....
I want to display html page(with images) inside a panel,and that panel
is in contentplaceholder(master page)...............
here is my code..........
........................
If Request.QueryString("page") Is Nothing Then
Server.Transfer("Default.aspx")
End If
Dim title As String = Request.QueryString("title").ToString()
Dim pageName As String = Request.QueryString("page")
Dim fullPath As String = pageName
Dim thegen As HtmlGenericControl = New HtmlGenericControl()
If (Not File.Exists(Server.MapPath(fullPath))) Then
Server.Transfer("Default.aspx")
End If
Dim rdr As StreamReader = Nothing
Try
rdr = New StreamReader(Server.MapPath(fullPath))
Catch
rdr.Close()
Server.Transfer("Default.aspx")
End Try
Dim content As Object = rdr.ReadToEnd()
rdr.Close()
thegen.InnerHtml = content(I think problem is here but not
getting it)
Me.Panel1.Controls.Add(thegen)
Me.Title = title
........................
possibly provide some reference code for that.....
plzzzz....I am in great need of your reply....
Waiting for reply..........