473,500 Members | 1,822 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Problem with iframes

Hi All,
I have a main page that contains an iframe. Depending upon tab control
selection, I load several different aspx pages (from the same app) to the
iframe. My parent sets data in the session variable. The page in the iframe
is unable to access the session object (shows null). My guess is that the
dll is loaded twice as asp.net loads another instance of dll in the iframe.
Interestingly in another scenerio I am playing with modal dialogs and set
data in session object and upon closing modal dialog my parent ie window
gets the data. I load the page in the modal dialog via javascript. In this
case why doesnt asp.net load another instance of dll ? Any way to get around
the iframe problem?
Thanks
Ashish
Nov 18 '05 #1
2 2370
Pages in IFrame in the same app? If the IFrame pages come from another app,
you will not share session unless you have the keys set identically and, if
using forms auth, have the same forms auth cookie name. Best to put the ASPX
pages in the same app.

Is the IFrame on page1 of the app? The firing of events may be the problem.
As a cheap way of setting this, you can have the first page create any
session objects and redirect to the IFRAME holding page.

One more question? The page in the IFRAME is ASPX, is the page outside of
the IFRAME ASP or ASPX? If ASP, they have different sessions. There is an
article on MSDN.microsoft.com that tells how to share session in ASP and
ASPX:
http://msdn.microsoft.com/library/en...rttoaspnet.asp

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

************************************************** ********************
Think Outside the Box!
************************************************** ********************
"Ashish" <no****@myself.com> wrote in message
news:uG**************@TK2MSFTNGP10.phx.gbl...
Hi All,
I have a main page that contains an iframe. Depending upon tab control
selection, I load several different aspx pages (from the same app) to the
iframe. My parent sets data in the session variable. The page in the iframe is unable to access the session object (shows null). My guess is that the
dll is loaded twice as asp.net loads another instance of dll in the iframe. Interestingly in another scenerio I am playing with modal dialogs and set
data in session object and upon closing modal dialog my parent ie window
gets the data. I load the page in the modal dialog via javascript. In this
case why doesnt asp.net load another instance of dll ? Any way to get around the iframe problem?
Thanks
Ashish

Nov 18 '05 #2
Hi Gregory,
I think I didnt make myself much clear. The problem is:

1. I have one ASP.NET application (no classic asp) and it has a main page
(i.e. kinda SDI main window)
that contains an IFrame.

2. I load different ASPX pages (that belong to the same ASP.NET project) in
that iframe.

3. The session variables are set by my business objects (again belong to the
same project).

4. The page that loads in the iframe tries to access the session object but
finds it null !!!

Thanks
Ashish

"Cowboy (Gregory A. Beamer)" <No************@comcast.netNoSpamM> wrote in
message news:Ou**************@TK2MSFTNGP11.phx.gbl...
Pages in IFrame in the same app? If the IFrame pages come from another app, you will not share session unless you have the keys set identically and, if using forms auth, have the same forms auth cookie name. Best to put the ASPX pages in the same app.

Is the IFrame on page1 of the app? The firing of events may be the problem. As a cheap way of setting this, you can have the first page create any
session objects and redirect to the IFRAME holding page.

One more question? The page in the IFRAME is ASPX, is the page outside of
the IFRAME ASP or ASPX? If ASP, they have different sessions. There is an
article on MSDN.microsoft.com that tells how to share session in ASP and
ASPX:
http://msdn.microsoft.com/library/en...rttoaspnet.asp

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

************************************************** ********************
Think Outside the Box!
************************************************** ********************
"Ashish" <no****@myself.com> wrote in message
news:uG**************@TK2MSFTNGP10.phx.gbl...
Hi All,
I have a main page that contains an iframe. Depending upon tab control
selection, I load several different aspx pages (from the same app) to the iframe. My parent sets data in the session variable. The page in the

iframe
is unable to access the session object (shows null). My guess is that the dll is loaded twice as asp.net loads another instance of dll in the

iframe.
Interestingly in another scenerio I am playing with modal dialogs and set data in session object and upon closing modal dialog my parent ie window
gets the data. I load the page in the modal dialog via javascript. In this case why doesnt asp.net load another instance of dll ? Any way to get

around
the iframe problem?
Thanks
Ashish


Nov 18 '05 #3

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

Similar topics

10
3898
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...
1
3040
by: Koms Bomb | last post by:
I create two iframes dynamically to get data from the server. I want to deal with the data after it's downloaded, so I set the two iframes' onload event handlers to current document(not the iframe...
17
8491
by: Bruce W...1 | last post by:
I don't seem to be getting anywhere with trying to make my web page transitional XHTML. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"...
6
6075
by: mike | last post by:
I have a page that uses a some javascript and it works fine in IE but fails to work in Firefox. Basically what I'm trying to do is have 3 iframes on a page but only displaying one of them at a...
2
2079
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...
7
5482
by: Oleg | last post by:
I have a web form let's say 'YYZ.aspx'. It has an iframe in it. When it loads it shows progress bar in IE this way: loading for page then again loading for page in iframe. This part is fine....
3
2118
by: Giggle Girl | last post by:
Is there a way to use Javascript to detect if a browser supports IFrames, or (if it DOES support them) that IFrame use is enabled? Thanks, Ann
2
12685
by: ericisjusteric | last post by:
I have a page with multiple iframes and need to have the user (ie6) be able to click a button to refresh any one of the iframes - but also to click another button at the top of the page to refresh...
1
1793
by: enthusiastic | last post by:
Hi All I have a HTML page where I dynamically created 2 Iframes. The problem is, after this page is loaded & I navigate to some other page & come back using browsers back button, both of the...
0
7018
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...
0
7182
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
6906
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
7397
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...
0
4611
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
3106
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1430
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 ...
1
672
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
316
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.