473,657 Members | 2,934 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......... ............ple ase suggest me...how can i do
this.....

I want to display html page(with images) inside a panel,and that panel
is in contentplacehol der(master page).......... .....

here is my code..........

............... .........
If Request.QuerySt ring("page") Is Nothing Then
Server.Transfer ("Default.aspx" )
End If

Dim title As String = Request.QuerySt ring("title").T oString()

Dim pageName As String = Request.QuerySt ring("page")
Dim fullPath As String = pageName

Dim thegen As HtmlGenericCont rol = New HtmlGenericCont rol()

If (Not File.Exists(Ser ver.MapPath(ful lPath))) Then
Server.Transfer ("Default.aspx" )
End If
Dim rdr As StreamReader = Nothing
Try
rdr = New StreamReader(Se rver.MapPath(fu llPath))
Catch
rdr.Close()
Server.Transfer ("Default.aspx" )
End Try
Dim content As Object = rdr.ReadToEnd()
rdr.Close()
thegen.InnerHtm l = content(I think problem is here but not
getting it)
Me.Panel1.Contr ols.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 2355
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......... ............ple ase suggest me...how can i do
this.....

I want to display html page(with images) inside a panel,and that panel
is in contentplacehol der(master page).......... .....

here is my code..........
<code snipped, the OP reads a HTML file and includes the content in a
HtmlGenericCont rol>

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
4868
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 background: our application has a Report function that dynamically creates a new page containing various tables of real-time data (through the C# code "behind" the .aspx file). We have a new requirement to add a file save function to this report page. ...
17
2475
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 'Button19' of type 'Button' must be placed inside a form tag with runat=server Can the IDE not do what it is supposed to do. It seems that it is a fight to make it do anything or did I do something wrong? It would seem silly to have to create a...
5
15810
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
10066
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 page). Is there an easy way to do this or do I need to stream the html into my application and parse unwanted header/footer info before rendering it within the application page (as a literal control, i imagine) Has anyone done this or seen any...
6
5501
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; DataBinder.Eval(Container.DataItem,"StoreEmail") &amp; "&amp;Subject=" &amp; DataBinder.Eval(Container.DataItem,"ProductName") ....
0
1897
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 the html frame, the session of an aspx file inside the frame will be lost and the page will generate an error. However, this error will not happen when I open the page outside the html frame. In addition, if the html frame file is hosted on the...
2
2441
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 with it. I want to generate some HTML inside the class and then that stuff will be on every actual .aspx page that inherits from my master page class. I want this to be output on every page (amongst other stuff)
3
2877
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 it to this page just to show this HTML string. I know that in some cases we can use .InnerHtml property of some controls to inject the HTML string created in C# code, but it didn't work in my case. I tried to use TEXTAREA1.InnerHtml and it shows me...
4
15530
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" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <script runat="server">
0
8384
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8302
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8820
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8718
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8499
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
4300
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2726
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1937
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1601
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.