473,396 Members | 2,011 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,396 software developers and data experts.

Embed an html page into a placeholder?

Hi all,

My web app uses 3 different placeholders on one page and dynamically load
usercontrols into them. That's all fine but now I have two situations which
puzzle me:

1. I have a sub-folder of html pages from my site and I need to show one of
these pages at a time within a specific placeholder on my main page. How do
I go about doing this?

2. I have a dll which creates a server-side spreadsheet and I also need to
load this spreadsheet into a placeholder. How do I do this?

Any help forth-coming would be really appreciated.

Regards
John.
Nov 18 '05 #1
1 2267
Hi, John,

<snip>
1. I have a sub-folder of html pages from my site and I need to show one of these pages at a time within a specific placeholder on my main page. How do I go about doing this?
You can use an iframe control. Just add runat="server" and an id attributes.
Declare it as System.Web.UI.HtmlControls.HtmlGenericControl in the page
class. You can set the src, width, height, etc properties from the page
class like this:

[C#]
iframe1.Attributes["src"] = "the src";
[VB.NET]
iframe1.Attributes("src") = "the src"
2. I have a dll which creates a server-side spreadsheet and I also need to
load this spreadsheet into a placeholder. How do I do this?


I'm only guessing as I don't know what this "server-side spreadsheet" looks
like. Create a usercontrol that will take this "spreadsheet" as parameter
and display the data contained in it somehow as html.

Greetings
Martin
Nov 18 '05 #2

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,...
2
by: Cris Curtis | last post by:
When I use an embed tag that uses a dynamic aspx page, the dynamic aspx page appears to get called 2 times instead. Below is code that adds an embed tag to a placeholder control that will use...
0
by: Chris Leffer | last post by:
Hi. I have a page that dynamically creates an <embed> tag. Several users are running the site using IE 6.0 without problems, but on just one user the sound won't play. That's the code that...
20
by: Guadala Harry | last post by:
In an ASCX, I have a Literal control into which I inject a at runtime. litInjectedContent.Text = dataClass.GetHTMLSnippetFromDB(someID); This works great as long as the contains just...
4
by: philippe merrien | last post by:
hello, I would like to modify the content of my html page from the code behind. But i've got a problem...I know how to get the html from a spécific control (thanks to FindControl) but what...
24
by: Manuel | last post by:
Is it possible to embed an image, like a company logo in a CDOSYS generated message? If yes, I´ll apreciate some code sample. I´ve been able to format messages in html the way I like, but I...
1
by: John | last post by:
I am trying to get a control to insert into the HTML content for a page which comes from our database. At the point I have a tag for the component I want to add which is contained inside the HTML....
1
by: 2X4Man | last post by:
I am creating a webmail solution and need to be able to display HTML e- mails in a placeholder without screwing up the styling of the rest of the page. I know that I could use an iframe to do...
2
dream party
by: dream party | last post by:
Inserting a Flash (SWF, FLV) file into HTML web page is already an old and familiar thing to all of us. It is a rather non-flexible thing that just to edit some options in the template. However, I...
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: 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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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...
0
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
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,...

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.