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

Window.open destroys my parent session values

Hi,
When a open an asp page from a modal window through window.open, my
session values of parent(the screen that invoked the modal window) are
lost.
Please this is urgent.

Jun 7 '06 #1
3 6123
ha***********************@gmail.com wrote:
Hi,
When a open an asp page from a modal window through window.open, my
session values of parent(the screen that invoked the modal window) are
lost.
Please this is urgent.


Provide a small example that illustrates this problem, please. No need
to post your entire pages. Just the bits needed to illustrate what's
happening.

The main reason I ask is because window.open does not open a modal
window. You would need window.ShowModalDialog for that.

Also provide details about which browser demonstrates this behavior.

Bob Barrows
--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.
Jun 7 '06 #2
Do you mean that your sequence is something like

original.asp:-> window.ShowModalDialog("xyz.asp"), then on
xyz.asp:-> window.open("anotherpage.asp")

and that on anotherpage.asp you have no access to Session("") variables set
on original.asp?

If yes, you'd better reconsider the dialog flow in your design, or you may
have to deal the issue with a handle to opener window (and hidden fields in
there).

/pexi

<ha***********************@gmail.com> wrote in message
news:11*********************@i39g2000cwa.googlegro ups.com...
Hi,
When a open an asp page from a modal window through window.open, my
session values of parent(the screen that invoked the modal window) are
lost.
Please this is urgent.

Jun 7 '06 #3

Pexi wrote:
Do you mean that your sequence is something like

original.asp:-> window.ShowModalDialog("xyz.asp"), then on
xyz.asp:-> window.open("anotherpage.asp")

and that on anotherpage.asp you have no access to Session("") variables set
on original.asp?

If yes, you'd better reconsider the dialog flow in your design, or you may
have to deal the issue with a handle to opener window (and hidden fields in
there).

/pexi

<ha***********************@gmail.com> wrote in message
news:11*********************@i39g2000cwa.googlegro ups.com...
Hi,
When a open an asp page from a modal window through window.open, my
session values of parent(the screen that invoked the modal window) are
lost.
Please this is urgent.

Yes, I call Window.open and do a form.submit to an asp page.
Also i am not able to access the session variables when i have opened
more no of IE windows or a IE window that i have been using other than
my application.

Is there a way that can i do form submit to modal window.
Also explain me regarding Opener and windows handler

Thanks for Pexi and Bob

Jun 12 '06 #4

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

Similar topics

7
by: Bilal | last post by:
Hi, I have a web application that operates on several windows. Each window is named win_1, win_2, win_3,... . When I quit a session, I usually loop through all the windows and close one by one. So...
4
by: Davey | last post by:
I have a website which has a popup window (this only opens when the user chooses to open it). In the popup window I have a <select> control which lists a selection of "classes". Each class has a...
3
by: Michelle Stone | last post by:
hi al i have "variab1 = window.open ("a.aspx", "helloworld"); i do this inside a RegisterStartupScrict ("key", "<script language=javascript>******</script>"); where ***** is hte javascript...
1
by: Earl Teigrob | last post by:
I did a ton of searching to try and find a simple solution to this issue and finally wrote my own, which I am sharing with everyone. In my searching, I did find a very complete and robust solution at...
5
by: John Scott | last post by:
Ok..this a rather odd question/problem. I haven't really found a straight forward answer to how to handle this scenario, so I hope someone here can help. Here it is: I have an application...
0
by: harikrishnan.kamalakannan | last post by:
Hi, When a open an asp page from a modal window through window.open, my session values of parent(the screen that invoked the modal window) are lost. Please this is urgent.
2
by: epaetz | last post by:
Is there a way to decouple the linkage between a parent and a child window? Does the parent window have any sort of a collection that holds all the children that it has spawned? I want to...
0
by: =?Utf-8?B?UGF1bA==?= | last post by:
Hi just wondering if anyone knows if there is a way to tell if a child window is still open in the code behind in the parent window (web application vs.net 2005)? I have a web app and am using the...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
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: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

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.