473,569 Members | 3,009 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

IFRAME running .aspx page problems with postback

Hi!

We are experiencing a problem with running an .aspx page inside an
iframe. The .aspx page is loading perfectly the first time (on load),
but when we try to interact/navigate within the .aspx page (press a
button/calendar control e.g.) the response is loaded in a new separate
browser window.

What we want is that the .aspx page is preserved and running inside
the IFRAME, not only on load, but also when the user tries to interact
with the page.

By the way, in the development environment we run the page in an frame
(not iframe), and this works fine.

Please help!
Nov 18 '05 #1
4 7770
Hi richard,
Thank you for using MSDN Newsgroup! My name is Steven, and I'll be
assisting you on this issue.
From your description, you are using an iframe to contain a certain ASP.NET
web page. However, when you run the page and its container page, you found
that the page loaded correctly the first time, but it will be loaded in
another separate new browser window after posted back(fired some post back
in the page).
If there is anything I misunderstood, please feel free to let me know.

Based on my experience, the problem is probably caused by something
incorrect with the <iframe> element or
the certain page which is located in the iframe. Would you please confirm
the following items:

1. Does this problem occurs with the certain page(in the iframe), or also
occurs if replace the page with other pages? You may have a try build a
simple page and set it as the "src" of the iframe and see whether the
problem remains. Thus, we could assure whether the problem is due to the
page or the <iframe> or its container page.

2. Also, since open a page in a new separate window programmaticall y is
generally implemented using client side script such as javascript. You may
have a check on the certain page or its container page to see whether
there're some particular script blocks which may cause such behavior.

If you still feel puzzled with the problem, would you try creating a two
simple pages( just simpe enough to repro the issue) and provide me the page
code? Then, I'll try to do some further research on my side.

Please try the preceding suggestions. If you have any questions or have any
new findings, please feel free to let me know.
Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Nov 18 '05 #2
Hi Steven, and thank you for your reply!

It seems to be some problems with the container page holding the
iframe-tag, I have created a separate testproject, where webform1.aspx
is containing the iframe-tag, pointing src to webform2.aspx.
webform2.aspx is containing a textbox and a button, and the
button-click event is setting the text in the textbox.

When running this project everything is working fine.

After digging into the containerpage-code where my actual problem is,
(the code is written by another division in my company), they are
dynamically setting the src of the iframe-tag. I assume that this
could be the source of the problem. I will confront this with them,
and try to solve the problem.

Thanks for the tip, Steven!

richard
Nov 18 '05 #3
Hi richard,
Thanks for your reponse. I'm glad that you've figured out the problem in
our issue. Hope you'll soon solved it.
Also, if you need any assistance, please feel free to let me know.
Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Nov 18 '05 #4
"Richard St?en" <ri*****@itverk et.no> wrote in message
news:24******** *************** ***@posting.goo gle.com...
After digging into the containerpage-code where my actual problem is,
(the code is written by another division in my company), they are
dynamically setting the src of the iframe-tag. I assume that this
could be the source of the problem. I will confront this with them,
and try to solve the problem.


You may also want to make sure that your <FORM> tag in your ASPX page
doesn't have a "target" attribute (as doesn't the link that you're clicking,
if it's a linkbutton). This will cause a postback to occur in a different
window.

Kelly
Nov 18 '05 #5

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

Similar topics

11
461
by: Fred | last post by:
I have an aspx page: Main.aspx which has several components that cause a postback. In the page Main.aspx I also have an iframe which contains a multi-page pdf file. The problem I am facing is that whenever the user does an action which causes a postback on the main page Main.aspx, the page posts back and the pdf file in the iframe is...
3
3955
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 IsPostBack=False by now!. The ASPX is opened via client side script (into an iFrame) inside a .HTM file (as ASPX postback causes problems in a modal...
1
4691
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 each cell within it to my code behind file which generates the HTML to display the data in a formatted text box, some of which is editable, some of...
3
5976
by: Peter | last post by:
I have a webform on this form is a User Control and another webform in IFRAME On the User Control there is a save button. I want to click this button and somehow tell the webpage in IFRAME that the button was clicked, how would I do that? (in other words I want to save the webform data in IFRAME when the save button is clicked) Peter
3
9552
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 loaded into the IFRAME, where can that error condition be trapped? Thanks Timo
1
2660
by: user | last post by:
I have a parent aspx page with a few iframes. Each of the iframes show an aspx page with a datagrid whose rows all show editable entry fields at all times. The user can enter values into the parent page's form and into the iframes' datagrids and then press a save button on the parent page. My question is: from the parent's Save_Click event...
5
2488
by: Chris Kennedy | last post by:
I want to put an Iframe on a webform page. How do I get the Iframe's source file to change at the press of button control on a web form (containing the iframe). Preferabaly without javascript, postbacks are acceptable. Cheers.
4
4151
by: moondaddy | last post by:
I have a htm page where I need to pass some data to an aspx page as a means of sending data to the database. I don't need to see the aspx page so I was going to put it in a hidden iframe. This works real good. Since I don't need the aspx page to do any postback, is there a way to pass a parameter to it with out it finishing the round trip...
1
3447
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 load the iframe with different .aspx pages. The HTML/mark up for the .aspx pages executes every time, but the Page_Load events for the pages never...
0
7703
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...
0
7619
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...
0
7930
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. ...
1
7681
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...
0
7983
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6290
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...
1
5514
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...
0
3651
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2118
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

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.