473,803 Members | 3,913 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 2289
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.H tmlControls.Htm lGenericControl in the page
class. You can set the src, width, height, etc properties from the page
class like this:

[C#]
iframe1.Attribu tes["src"] = "the src";
[VB.NET]
iframe1.Attribu tes("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 "spreadshee t" 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
3116
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, which needs a Quicktime plugin, and one Java applet. He's also kindly supplied me with sample HTML code for each. The code looks like this (simplified):
2
3098
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 a second aspx page to generate the svg for the embed. svgchart.Controls.Clear(); string strSRC = "./DesktopModules/Enterprise/BusinessRuleSVG.aspx";
0
1149
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 creates the tag: Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Dim embAlert As New HtmlGenericControl("embed")
20
5654
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 client-side HTML, CSS, etc. What I want to do is somehow insert a *server control* into the , then set the server control's properties at runtime.
4
1513
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 can i do to get all the all HTML page code? thanks
24
6278
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 can't figure out how to embed an image. Thanks for your time. -- Manuel
1
1796
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. I have tried to insert the control into a placeholder with no joy. I want to have something similar to DotNetNukes way of adding content to a page. Does anyone have any ideas how to do this or where I'm going wrong? What I have so far :...
1
4694
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 this, but the problem that I am running into is that iframe's require a src which points to a file, I don't have an HTML file to display I just have the text of the e-mail. Any suggestions for the best way to solve this problem?
2
8096
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 did not understand some parameters totally in the HTML tag. These days when I was surfing the Internet I have found some comprehensive introduction to these two tags. I read it and conclude it with my own words; I think it will be useful to us, so I...
0
9703
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
9564
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
10548
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...
1
10295
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
9125
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7604
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5629
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4275
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
3798
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.