472,958 Members | 2,704 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

IFrame within a ContentPlaceHolder, anyone know about this?

ASP.NET 2.0 Question:

I have a simple IFrame User Control that I wrote:

<%@ Control Language="C#" AutoEventWireup="true"
CodeFile="IFrameControl.ascx.cs" Inherits="IFrameControl" %>

<iframe src="" id="taskwindow" runat="server" width="100%"

private void Page_Load(object sender, System.EventArgs e)
taskwindow.Attributes["src"] = "http://hotmail.com";

As you can see I set the src attribute of the IFrame on the page_load
event of the control. I am doing it that way because later I am going
to expose the src and let the page containing this IFrame modify it.

My Problem:
I can drop this control into a normal webform and it works perfectly.
However, when I drop this control into the ContentPlaceHolder of a form
which uses my Master.page, the control will NOT load its src.

I can see the webform downloading data from the src(in this case
hotmail) in the status bar at the bottom of my browser, but the IFrame
just stays blank and I don't see the hotmail site.

Anyone know how to fix this so that I can use my IFrame within my


Nov 19 '05 #1
0 2700

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

Similar topics

by: ukrbend | last post by:
I'm new to Javascript and to html and am trying to make the following code snippet work but it doesn't. It refuses to call the getPage() function and I always get a 404 error. I know the code is...
by: ukrbend | last post by:
I use an iframe on my home page and everything works perfectly. But now I decided to add a popups to my page. The popups come not from within the iframe but from the parent frame. Again, everything...
by: Andrew Robinson | last post by:
I would like to use a ContentPlaceHolder within the following. Any ideas on how to best accomplish this? <td rowspan="2" style="width: 600px; background-image: url('<asp:ContentPlaceHolder...
by: Mike | last post by:
All: I am a newbee to ASP.NET I have created an aspx webpage for the title bar which I want to use in other pages in the website.When I use an iframe in webpages to use the title bar, I get an...
by: =?Utf-8?B?VA==?= | last post by:
We've been developing an application for a while which allows display of office/pdf etc documents within an iframe in a web browser. However, since installing office 2007 this has stopped working...
by: diver | last post by:
I was using an <iframe> to load a website within my .aspx page. When the user "logged out", I called a javascript break out function to breakout of the frame and load the appropriate page when...
by: AC | last post by:
I had a page that does some event setup on window.onload: function prepEvents() { document.getElementById("menumap_sales").onmouseover = swapMenuSales; // etc } window.onload = prepEvents;
by: lllomh | last post by:
Define the method first this.state = { buttonBackgroundColor: 'green', isBlinking: false, // A new status is added to identify whether the button is blinking or not } autoStart=()=>{
by: Aliciasmith | last post by:
In an age dominated by smartphones, having a mobile app for your business is no longer an option; it's a necessity. Whether you're a startup or an established enterprise, finding the right mobile app...
by: giovanniandrean | last post by:
The energy model is structured as follows and uses excel sheets to give input data: 1-Utility.py contains all the functions needed to calculate the variables and other minor things (mentions...
by: NeoPa | last post by:
Hello everyone. I find myself stuck trying to find the VBA way to get Access to create a PDF of the currently-selected (and open) object (Form or Report). I know it can be done by selecting :...
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 1 Nov 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM) Please note that the UK and Europe revert to winter time on...
by: nia12 | last post by:
Hi there, I am very new to Access so apologies if any of this is obvious/not clear. I am creating a data collection tool for health care employees to complete. It consists of a number of...
by: NeoPa | last post by:
Introduction For this article I'll be focusing on the Report (clsReport) class. This simply handles making the calling Form invisible until all of the Reports opened by it have been closed, when it...
by: isladogs | last post by:
The next online meeting of the Access Europe User Group will be on Wednesday 6 Dec 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, Mike...
by: GKJR | last post by:
Does anyone have a recommendation to build a standalone application to replace an Access database? I have my bookkeeping software I developed in Access that I would like to make available to other...

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.