473,379 Members | 1,335 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,379 software developers and data experts.

Embed non-ASP.NET pages in an ASP.NET page

Hi there.

I'm currently working on a project involving rebuilding our local
intranet site. The site was originally developed using frames, defining
a header, sidebar, and content area, which I've been working to replace
using ASP.NET master pages.

Right now I'm trying to find a solution for some of our older and
externally linked content. A good proportion of this content get loaded
into the content frame, leaving the header and sidebar intact. I'm
trying to find a solution that will allow me to still embed this
content inside the content area on my Master page without having to
modify the target.

I was thinking of using a dynamic iframe inside a place-holder page
that would load the desired content, however, I'm having troubling
getting this iframe to properly size to fill the whole content area.
I'm also not convinced that this is the proper direction to go.

Has anyone else encountered this type of problem and what solution did
they use to solve it?

Thanks

Dec 20 '06 #1
6 1470
"emorgoch" <em*************@gmail.comwrote in message
news:11**********************@80g2000cwy.googlegro ups.com...
I'm currently working on a project involving rebuilding our local
intranet site. The site was originally developed using frames, defining
a header, sidebar, and content area, which I've been working to replace
using ASP.NET master pages.
Excellent.
Right now I'm trying to find a solution for some of our older and
externally linked content. A good proportion of this content get loaded
into the content frame, leaving the header and sidebar intact. I'm
trying to find a solution that will allow me to still embed this
content inside the content area on my Master page without having to
modify the target.

I was thinking of using a dynamic iframe inside a place-holder page
that would load the desired content, however, I'm having troubling
getting this iframe to properly size to fill the whole content area.
I'm also not convinced that this is the proper direction to go.

Has anyone else encountered this type of problem and what solution did
they use to solve it?
I think it will depend on the format of your older and externally linked
content. If they are plain HTML files, then it will be fairly simple to
create a content page, place a literal control in it, open the HTML file,
copy everything inside the <body></bodytags using RegEx and then plug that
into the literal control.

One word of caution, though - don't even waste any time trying to come up
with a mechanism whereby the MasterPage controls the contents of its
ContentPage(s) - it just doesn't work like that at all...

Can you provide more information as to the format of your older and
externally linked content...?
Dec 20 '06 #2
you need to write javascript to size it. attach to the window onresize
event.

-- bruce (sqlwork.com)

emorgoch wrote:
Hi there.

I'm currently working on a project involving rebuilding our local
intranet site. The site was originally developed using frames, defining
a header, sidebar, and content area, which I've been working to replace
using ASP.NET master pages.

Right now I'm trying to find a solution for some of our older and
externally linked content. A good proportion of this content get loaded
into the content frame, leaving the header and sidebar intact. I'm
trying to find a solution that will allow me to still embed this
content inside the content area on my Master page without having to
modify the target.

I was thinking of using a dynamic iframe inside a place-holder page
that would load the desired content, however, I'm having troubling
getting this iframe to properly size to fill the whole content area.
I'm also not convinced that this is the proper direction to go.

Has anyone else encountered this type of problem and what solution did
they use to solve it?

Thanks
Dec 20 '06 #3
I think it will depend on the format of your older and externally linked
content. If they are plain HTML files, then it will be fairly simple to
create a content page, place a literal control in it, open the HTML file,
copy everything inside the <body></bodytags using RegEx and then plug that
into the literal control.

One word of caution, though - don't even waste any time trying to come up
with a mechanism whereby the MasterPage controls the contents of its
ContentPage(s) - it just doesn't work like that at all...

Can you provide more information as to the format of your older and
externally linked content...?
There's a variety of content.

Some of them are plain HTML files. However, not all of them are local
to the webserver that the ASP.NET page will run from. Some of them are
pages that are served by our parent company's intranet south of the
border (we're up in the great white north).

Another large portion of the content are pure PDF files that get
displayed (using acrobat reader's tie-into IE). There's a single
classic ASP application that won't "upgraded" for a while. Lastly,
there's a few Oracle written HTML manuals that we make available to
users.

Thanks

Dec 20 '06 #4
"emorgoch" <em*************@gmail.comwrote in message
news:11*********************@48g2000cwx.googlegrou ps.com...
>Can you provide more information as to the format of your older and
externally linked content...?

There's a variety of content.
I had a feeling there might be... ;-)
Some of them are plain HTML files.
They will present no problem.
However, not all of them are local to the webserver that the ASP.NET page
will run
from. Some of them are pages that are served by our parent company's
intranet south
of the border (we're up in the great white north).
That shouldn't be a problem either, so long as your webserver can "see"
them. Do a Google search for WebClient, HttpWebRequest & HttpWebResponse...
Another large portion of the content are pure PDF files that get
displayed (using acrobat reader's tie-into IE).
In which case, I don't think you'll need to worry about MasterPage /
ContentPage issues here as you'll be opening the PDFs in a separate browser
window, no...?
There's a single classic ASP application that won't "upgraded" for a
while.
That *should* work on the same principle as the static HTML files unless you
need to run the ASP application interactively in order to get it to display
the correct active content...
Lastly, there's a few Oracle written HTML manuals that we make available
to users.
How does that work? Do you have to query Oracle to get at the HTML? Again,
that should be fairly straightforward...
Dec 20 '06 #5
Hi Mark,

I've looked over the WebClient, HttpWebRequest/Response objects as you
suggested, and while I can see how they could be used, I don't feel
that they are going to be applicable in this instance. The reason I say
this is that most of the pages I'm going to be loading have links in
themselves to other pages that I will want to keep inside the "frame".
I guess it's feasible that I could re-map to an appropriate handler as
they are read, but is it really feasible?

The other part is that some of the pages do have some client-side
scripting too them as well. I'm not sure how well the WebClient and
other classes would handle those.

As for the oracle stuff: they are HTML based user manuals provided by
oracle, by hosted on our internal server.

I'm still feeling that an iFrame is the way to go, but am having
problems getting it to size properly in the window (which I guess is to
be expected in this case :P)

Mark Rae wrote:
"emorgoch" <em*************@gmail.comwrote in message
news:11*********************@48g2000cwx.googlegrou ps.com...
Can you provide more information as to the format of your older and
externally linked content...?
There's a variety of content.

I had a feeling there might be... ;-)
Some of them are plain HTML files.

They will present no problem.
However, not all of them are local to the webserver that the ASP.NET page
will run
from. Some of them are pages that are served by our parent company's
intranet south
of the border (we're up in the great white north).

That shouldn't be a problem either, so long as your webserver can "see"
them. Do a Google search for WebClient, HttpWebRequest & HttpWebResponse...
Another large portion of the content are pure PDF files that get
displayed (using acrobat reader's tie-into IE).

In which case, I don't think you'll need to worry about MasterPage /
ContentPage issues here as you'll be opening the PDFs in a separate browser
window, no...?
There's a single classic ASP application that won't "upgraded" for a
while.

That *should* work on the same principle as the static HTML files unless you
need to run the ASP application interactively in order to get it to display
the correct active content...
Lastly, there's a few Oracle written HTML manuals that we make available
to users.

How does that work? Do you have to query Oracle to get at the HTML? Again,
that should be fairly straightforward...
Dec 20 '06 #6
"emorgoch" <em*************@gmail.comwrote in message
news:11*********************@a3g2000cwd.googlegrou ps.com...
I've looked over the WebClient, HttpWebRequest/Response objects as you
suggested, and while I can see how they could be used, I don't feel
that they are going to be applicable in this instance. The reason I say
this is that most of the pages I'm going to be loading have links in
themselves to other pages that I will want to keep inside the "frame".
I guess it's feasible that I could re-map to an appropriate handler as
they are read, but is it really feasible?
Hmm - you didn't say that earlier! In which case, then, I don't feel the
"screen-scraping" approach will be of much use either...
The other part is that some of the pages do have some client-side
scripting too them as well. I'm not sure how well the WebClient and
other classes would handle those.
As above.
As for the oracle stuff: they are HTML based user manuals provided by
oracle, by hosted on our internal server.
Well, presumably they are self-contained units, or do they have external
links too...?
I'm still feeling that an iFrame is the way to go, but am having
problems getting it to size properly in the window (which I guess is to
be expected in this case :P)
Have you tried JavaScript code behind the window.onresize event, as Bruce
suggested...?
Dec 20 '06 #7

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

Similar topics

0
by: Wolfgang Schwanke | last post by:
Dear usenet, I'm having the following small problem. I've been ask to add some Quicktime panoramas to a website. The author of the panoramas has made two versions of each: One in MOV format,...
3
by: Tony Sutton | last post by:
I have this following code in my html file: <object classid="clsid:166B1BCA-3F9C-11CF-8075-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/director/sw.cab#...
11
by: Anna | last post by:
Hi all. I want to embed the EMBED tag in the object tag. I understood that I need to provide a PARAM tag inside the OBJECT whose value will hold the content of EMBED src attribute, but after...
10
by: Anna | last post by:
Hi all. I don't have a very deep understanding of CSS and this question might sound stupid for you. Sorry for that. Can the overflow CSS property be applied to the embed tag? I have an embed...
1
by: Frances Del Rio | last post by:
I have this tag to embed a video: <EMBED type="application/x-mplayer2" pluginspage="http://www.microsoft.com/Windows/Downloads/Contents/Products/MediaPlayer/" SRC="video.wmv" name="Video"...
2
by: chaitatp | last post by:
Hi guys, I have posted a similar question before but this post has some different. The similar link is: ...
1
by: stoj | last post by:
I have a smallish C# application that i wish to distribute as a standalone executable (ie. without installer or other support files). Easy enough if everyone has .Net Framework 2.0 installed as...
2
by: Joe | last post by:
Hi I am able to embed Excel into a WebBrowser on my Dev machine but on a client machine an instance of Excel starts in it's own window outside of my form. I have used the WebBrowser with VS 2005...
6
by: qualitychecker | last post by:
Hello thanks for your help.. I try to reference a PHP module from within a HTML file, see below ---------------------------------------- <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr">...
2
polymorphic
by: polymorphic | last post by:
I am no longer good at Javascript and need help. I'm trying to embed pdf files in html then build some sort of navigation between the pdfs via the pdf numbered file name. I can generate the...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

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.