473,480 Members | 2,266 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

IFrame Page_Load multiple time

Hello

I have a default.aspx page with which has an iframe.

In the code-behind of the default.aspx page it loads the 'src'
attribute of the iframe.

The iframe loads another aspx page, but when it loads the Page_Load
method is called multiple times. In some situations the page is
called twice and in others it is called 4 times.

any ideas what might be going on here.

Thanks,
Matt
Nov 18 '05 #1
2 4356
magister wrote:
Hello

I have a default.aspx page with which has an iframe.

In the code-behind of the default.aspx page it loads the 'src'
attribute of the iframe.

The iframe loads another aspx page, but when it loads the Page_Load
method is called multiple times. In some situations the page is
called twice and in others it is called 4 times.

any ideas what might be going on here.


Sure, you might have AutoEventWireup set to true, in which case it runs
Page_Load because it's an event handler, and then it runs it again
because it's called "Page_Load".

Nov 18 '05 #2
Thanks for your reply,

Nope AutoEventWireup="false" and Page_load event wired only once in

private void InitializeComponent()
{
this.Load += new System.EventHandler(this.Page_Load);
}

However turning off smartnavigation in the page hosting the IFrame
sorted this one out...

Bummer, I wanted to use smartnav...

"Ryan Walberg, MCSD for .NET" <rw******@nospam.mts.reallynospam.net> wrote in message news:<#f*************@TK2MSFTNGP09.phx.gbl>...
magister wrote:
Hello

I have a default.aspx page with which has an iframe.

In the code-behind of the default.aspx page it loads the 'src'
attribute of the iframe.

The iframe loads another aspx page, but when it loads the Page_Load
method is called multiple times. In some situations the page is
called twice and in others it is called 4 times.

any ideas what might be going on here.


Sure, you might have AutoEventWireup set to true, in which case it runs
Page_Load because it's an event handler, and then it runs it again
because it's called "Page_Load".

Nov 18 '05 #3

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

Similar topics

2
12475
by: nightstar | last post by:
I am creating a web page that will contain multiple Iframes. One of the Iframes will contain a bill of sale that is generated by a script on x.mydomain.com/somefile.php?someparameters. One of the...
3
3926
by: Stevie_mac | last post by:
It might be me but... I dont seem to get a Page_Load event when a opening an ASPX in an iFrame. I do geta Page_Load event when an item on the ASPX (inside the iFrame) is clicked but then...
1
4681
by: Rhys | last post by:
I have a page which has an IFrame on it. The src of the IFrame is a page with a datagrid on it. The Datagrid has bound template columns. The columns of the datagrid pass the bound data value of...
2
23464
by: Jeronimo Bertran | last post by:
Hi, I have a page with a very data intensive grid which needs to be automatically refreshed constantly if a change is detected. In order to not refresh the complete page so often, I created an...
3
9543
by: Timo | last post by:
In javascript code on MyPage.aspx, I set a hidden IFRAME's source url: myframe.location.href = 'someotherpage.aspx'; If the session has timed out, preventing someotherpage.aspx from being...
0
2723
by: Brent.Lakatos | last post by:
ASP.NET 2.0 Question: I have a simple IFrame User Control that I wrote: HTML: <%@ Control Language="C#" AutoEventWireup="true" CodeFile="IFrameControl.ascx.cs" Inherits="IFrameControl" %> ...
0
380
by: Chukka | last post by:
I have iframe inside Firstpage.aspx page like this... <IFRAME id="IFrame_One" style="WIDTH: 1029px; HEIGHT: 425px" name="IFrame_Documents" marginWidth="0" marginHeight="0"...
5
4470
by: Chamnap | last post by:
Hello, I want to implement multiple uploads with multiple iframe posting to the server at the same time. Do all of you think it is possible to do this? Does this ways has any drawbacks? Give me...
1
3432
by: epower | last post by:
Hello, I am working on an ASP .NET application in Visual Studio 2005 and running IE7. This application has a page that contains an iframe which loads an .aspx page and hyperlinks that...
0
7049
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,...
0
7052
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,...
1
6744
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...
0
5348
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,...
0
4488
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3000
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
2989
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
565
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
188
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.