473,383 Members | 1,759 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,383 software developers and data experts.

Masterpages and iframes question

I'm using asp.net 2.0 beta 2 and I have a master page set up and then my
content page that uses the master page. On the master page I have an iframe
element that loads up another page. The page loaded by the iframe is another
asp.net page that is a content page that uses a different master page. When I
load my main page and then it tries to load this secondary page in the iframe
the page in the iframe doesn't load. I get instead a server error with the
message "Content controls have to be top-level controls in a content page or
a nested master page that references a master page." The page works fine if
it isn't inside an iframe but not when it is in an iframe.

Does anybody know if it is possible to use pages that are Master\Content
pages in an iframe or will asp.net not allow this?

Thanks.
Nov 19 '05 #1
2 4883
the server has no way of knowing if the request from a iframe, frame or top
level window. there must be something else that is happening.

-- bruce (sqlwork.com)
"Bruno" <Br***@discussions.microsoft.com> wrote in message
news:4E**********************************@microsof t.com...
I'm using asp.net 2.0 beta 2 and I have a master page set up and then my
content page that uses the master page. On the master page I have an
iframe
element that loads up another page. The page loaded by the iframe is
another
asp.net page that is a content page that uses a different master page.
When I
load my main page and then it tries to load this secondary page in the
iframe
the page in the iframe doesn't load. I get instead a server error with the
message "Content controls have to be top-level controls in a content page
or
a nested master page that references a master page." The page works fine
if
it isn't inside an iframe but not when it is in an iframe.

Does anybody know if it is possible to use pages that are Master\Content
pages in an iframe or will asp.net not allow this?

Thanks.

Nov 19 '05 #2
Yes, this is why I thought it odd that it didn't work but I had it happen on
2 different pages so I thought I'd see if there wasn't something I wasn't
considering. After I posted this I went back and set up a very simple test to
try and see if I could make this work outside the complexity of my site and I
was able to get it working so you're right, there is something else
happening. I just have to look back at my real site now and see what I did
wrong in my page that gets loaded in the iframe.

Bruno

"Bruce Barker" wrote:
the server has no way of knowing if the request from a iframe, frame or top
level window. there must be something else that is happening.

-- bruce (sqlwork.com)
"Bruno" <Br***@discussions.microsoft.com> wrote in message
news:4E**********************************@microsof t.com...
I'm using asp.net 2.0 beta 2 and I have a master page set up and then my
content page that uses the master page. On the master page I have an
iframe
element that loads up another page. The page loaded by the iframe is
another
asp.net page that is a content page that uses a different master page.
When I
load my main page and then it tries to load this secondary page in the
iframe
the page in the iframe doesn't load. I get instead a server error with the
message "Content controls have to be top-level controls in a content page
or
a nested master page that references a master page." The page works fine
if
it isn't inside an iframe but not when it is in an iframe.

Does anybody know if it is possible to use pages that are Master\Content
pages in an iframe or will asp.net not allow this?

Thanks.


Nov 19 '05 #3

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

Similar topics

10
by: maxim vexler | last post by:
I'm reading a lot of talks lately about the term iFrame and with your permission would like to ask a few question about that : - what is iFrame, i mean what is it good for ? - does all the...
0
by: Dan Popa | last post by:
Check out the following 2 links: http://www.batisdev.com/admin/test_1images.asp http://www.batisdev.com/admin/test_2images.asp First page contain 4 IFRAMES and 1 IMG tags. Second page contain 4...
5
by: Frances | last post by:
I need to replace iframes acc. to what option user chooses in a sel obj.. but figured have to load a blank iframe when pg loads so I can replace it.. (iframe gets put in a pre-existing div..) this...
2
by: Guadala Harry | last post by:
1. Are IFrames supported only in uplevel versions of IE? If not IE exclusively, what browsers support IFrames? 2. Are IFrames going to be supported in the future - as far as anyone knows - or...
2
by: iturner100 | last post by:
Hi, I've been struggling with this one for a couple of hours without much joy. Basically, I've got a set of nested masterpages (3 as it happens). I'm dynamically generating a new page in code...
5
by: Nick Wouters | last post by:
Dear All In Classic ASP I used CSS for ALL layout. Now in ASP.NET version 2 I am testing out Masterpages as they come in very handy. It seems like it is replacing CSS for layout but what is...
19
by: wmanzo | last post by:
I have a really professional conspiracy movie site and I use tons of layers and an external scroll bar assembly. I would like to put the various sections into MS Iframes and in order to clean up...
6
by: =?Utf-8?B?U3RlcGhlbiBIYXRmaWVsZA==?= | last post by:
I have two masterpages in a web application. One is used for the login and logout pages. The other is used for all other pages in the application. The difference between the two masterpages is...
8
by: Mort Strom | last post by:
Right now the header of my master page contains all of the CSS styles for all of the pages that might be loaded in my ContentPlaceHolder. The problem is that my <styletag is getting too large to...
2
by: Vohaul | last post by:
Hi there, I'm new to this site, but have been doing webpages with flash, html, css for a few years. I'm a convert from graphic designer to web Anyway, I have a client site that i designed a...
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
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
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:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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...
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...

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.