By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
426,248 Members | 1,961 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 426,248 IT Pros & Developers. It's quick & easy.

how to pass session values to popup window

P: 1
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
Share this Question
Share on Google+
1 Reply


Frinavale
Expert Mod 5K+
P: 9,731
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

Post your reply

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