473,503 Members | 1,649 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

HTML Page inside ASPX page

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..........

Sep 5 '06 #1
1 2350
Hi,

Jai wrote:
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..........
<code snipped, the OP reads a HTML file and includes the content in a
HtmlGenericControl>

Wild guess:
I am pretty sure that it's a path problem. Most likely, the HTML page
references pictures according to its own location, and the ASPX is
placed in another location. The best way to be sure is to view the HTML
source on the client, and check that the path for the pictures (relative
to the ASPX page) exists.

HTH,
Laurent
--
Laurent Bugnion, GalaSoft
Software engineering: http://www.galasoft-LB.ch
Private/Malaysia: http://mypage.bluewin.ch/lbugnion
Support children in Calcutta: http://www.calcutta-espoir.ch
Sep 5 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
4857
by: Dr. StrangeDub | last post by:
I am looking for a way to capture the HTML file generated by an ASP.Net application (just as is sent back to the client) and save it to a designated spot on the web server. Here's a bit of...
17
2452
by: Lloyd Sheen | last post by:
This IDE is driving me nuts. I needed another button so I copied an existing one, changed the Text and the id and position by drag and drop. Well then I run and get the following: Control...
5
15803
by: David Elliott | last post by:
I need a control on a Web Page that can accept an HTML Document and will display it. Any help would be appreciated. Thanks, Dave Here is what I was trying...
5
10054
by: Earl Teigrob | last post by:
I am creating an application where I would like to give web designers the ablity to create a static html page and dyanamically load it into my application(exactly like loading a user control into a...
6
5476
by: Paolo Pignatelli | last post by:
I have an aspx code behind page that goes something like this in the HTML view: <asp:HyperLink id=HyperLink1 runat="server" NavigateUrl='<%#"mailto:" &amp;...
0
1890
by: Tapak | last post by:
Hi, I am having a problem with the session inside the html frame. I created a html frame and host it on (IIS 5.0) a different server where I host all my aspx file (IIS 6.0). Every time, I view...
2
2428
by: CharlesA | last post by:
Hi folks, I'm using ASP.net with Framework vs 1.1 I'm inheriting from a custom rolled master page class that is just that a class that inherits from web.ui.page but it has no designer associated...
3
2868
by: Just D. | last post by:
All, What's the simplest way to show my own HTML string on the ASPX page assuming that this page is just created using the wizard and it has nothing on it? We're free to use any control adding...
4
15505
by: =?Utf-8?B?Rmx5Z3V5?= | last post by:
How can I update the html inside of a panel? How can I make this code work <%@ Page Language="C#" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"...
0
7198
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7271
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7319
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
7449
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5570
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
4666
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3160
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
1
730
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
373
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.