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

Home Posts Topics Members FAQ

how to pass session values to popup window

1 New Member
i call the popup window through javascript by using the below code.
Expand|Select|Wrap|Line Numbers
  1. <script language="javascript">
  2.        function hpclick()
  3.        {
  4.        var WinSettings = "center:yes;resizable:yes;dialogHeight:300px"
  5.        window.showModalDialog("http://localhost:4911/WebSite19/Create_category.aspx",WinSettings);
  6.        }
  7. </script>
but in that popup window i couldn't get the session values.
do i have to pass through querry string, if yes send me the code
Mar 14 '08 #1
1 2093
Frinavale
9,735 Recognized Expert Moderator Expert
i call the popup window through javascript by using the below code.
Expand|Select|Wrap|Line Numbers
  1. <script language="javascript">
  2.        function hpclick()
  3.        {
  4.        var WinSettings = "center:yes;resizable:yes;dialogHeight:300px"
  5.        window.showModalDialog("http://localhost:4911/WebSite19/Create_category.aspx",WinSettings);
  6.        }
  7. </script>
but in that popup window i couldn't get the session values.
do i have to pass through querry string, if yes send me the code
No you do not have to pass values through the query string.

A cookie is issued to the user's browser on the first request (unless you are using cookieless session). This cookie is stored and can be accessed by any instance of that browser (including pop ups), until the cookie is cleared from the browser.

This means that the popup window should be able to access Session data for that user.

Does the client's browser have Cookies Enabled?

-Frinny
Mar 14 '08 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

4
by: ryan | last post by:
Hello and sorry for the crosspost, I have a php page that uses sessions. The page has a button that opens a popup window. The popup window is itself a php page and also uses the session. When I...
9
by: Jimmy Junatas | last post by:
When we open a window (using client-side jscript ie. window.open("/Site/Popup.aspx?...",...)) from Page1.aspx, the called page Popup.aspx does not have access to the Session variables present in...
2
by: Joe Molloy | last post by:
Hi, This isn't a mission critical question but I thought I'dl throw it out there for your feedback as it's a bit curious. I have developed a shopping cart for an application I'm working on...
2
by: Marco Antonio Montalvo Durán | last post by:
hi for example, I have a page 'register.aspx' and open a second page 'popup.aspx', what I want to do is to pass the control and values obtained in 'popup.aspx' to 'register.aspx', somebody...
1
by: Alex | last post by:
Hi I am currently working on a project and i happened to encountered a problem which is very pricky. I have used formsAuthentication in my project. Manually codes an authenticationTicket. And...
1
by: gvrajkumar | last post by:
Hi Popup window is opened and after some time session has expired. After session expire, if the user tries to make any actions on the popup page the user is redirected to login.jsp page. What...
1
by: colleen1980 | last post by:
Hi: Can any one please tell me that how to i pass the two textbox values in the new page. If i use the form action in the popup window page then the new page is open in the same popup window as i...
1
by: magix8 | last post by:
Hi, I have a portal with logon session coded in ASP. From the Portal Main screen, i access to a popup-window screen to do my activity. Whenever session expired, the popup-window screen will...
4
by: goscottie | last post by:
I used submodal as my popup window. With some tweaks, it working great in my app. However, I can't find a way to detect session timeout in the popup window. The app is a form based...
0
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
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...
1
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
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
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
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
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
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 ...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.