Click here to Skip to main content
15,925,081 members
Home / Discussions / Web Development
   

Web Development

 
Questiongoogle submenu at search results Pin
tibiz1-Dec-06 19:08
tibiz1-Dec-06 19:08 
QuestionCannot view XML input using XSL style sheet Pin
Arthur Gladney1-Dec-06 19:03
Arthur Gladney1-Dec-06 19:03 
AnswerRe: Cannot view XML input using XSL style sheet Pin
Arthur Gladney4-Dec-06 4:44
Arthur Gladney4-Dec-06 4:44 
QuestionJavascript Proxy communication Pin
Richard Andrew x641-Dec-06 15:21
professionalRichard Andrew x641-Dec-06 15:21 
AnswerRe: Javascript Proxy communication Pin
Bradml1-Dec-06 15:34
Bradml1-Dec-06 15:34 
GeneralRe: Javascript Proxy communication Pin
Richard Andrew x641-Dec-06 15:54
professionalRichard Andrew x641-Dec-06 15:54 
GeneralRe: Javascript Proxy communication Pin
Bradml1-Dec-06 16:14
Bradml1-Dec-06 16:14 
GeneralRe: Javascript Proxy communication Pin
Richard Andrew x641-Dec-06 16:22
professionalRichard Andrew x641-Dec-06 16:22 
GeneralRe: Javascript Proxy communication Pin
Bradml1-Dec-06 16:32
Bradml1-Dec-06 16:32 
GeneralRe: Javascript Proxy communication Pin
Richard Andrew x641-Dec-06 16:34
professionalRichard Andrew x641-Dec-06 16:34 
GeneralRe: Javascript Proxy communication Pin
Richard Andrew x641-Dec-06 16:38
professionalRichard Andrew x641-Dec-06 16:38 
GeneralRe: Javascript Proxy communication Pin
Bradml1-Dec-06 16:54
Bradml1-Dec-06 16:54 
GeneralRe: Javascript Proxy communication Pin
RichardGrimmer2-Dec-06 7:08
RichardGrimmer2-Dec-06 7:08 
GeneralRe: Javascript Proxy communication Pin
Shog94-Dec-06 11:16
sitebuilderShog94-Dec-06 11:16 
QuestionCaching and State Management within WebServices Pin
RadioButton1-Dec-06 11:01
RadioButton1-Dec-06 11:01 
AnswerRe: Caching and State Management within WebServices Pin
Dominic Pettifer1-Dec-06 14:07
Dominic Pettifer1-Dec-06 14:07 
GeneralRe: Caching and State Management within WebServices Pin
RadioButton4-Dec-06 3:51
RadioButton4-Dec-06 3:51 
QuestionSMS Website Pin
Ashish Porwal30-Nov-06 20:15
Ashish Porwal30-Nov-06 20:15 
AnswerRe: SMS Website Pin
Bradml30-Nov-06 20:40
Bradml30-Nov-06 20:40 
AnswerRe: SMS Website Pin
Vasudevan Deepak Kumar1-Dec-06 21:08
Vasudevan Deepak Kumar1-Dec-06 21:08 
QuestionIE7 and session state Pin
Fred_Smith30-Nov-06 12:38
Fred_Smith30-Nov-06 12:38 
AnswerRe: IE7 and session state Pin
George L. Jackson30-Nov-06 15:25
George L. Jackson30-Nov-06 15:25 
GeneralRe: IE7 and session state Pin
Fred_Smith30-Nov-06 22:20
Fred_Smith30-Nov-06 22:20 
GeneralRe: IE7 and session state Pin
George L. Jackson30-Nov-06 22:44
George L. Jackson30-Nov-06 22:44 
GeneralRe: IE7 and session state Pin
Fred_Smith30-Nov-06 23:49
Fred_Smith30-Nov-06 23:49 
OK, look I'm really sorry if I'm being dense here, but i don't hink so... And it's not just popups, but even pages openeed in a new tab or window (eg target="_blank")

Try this page in if you don't believe me:
http://www.psu-tests.co.uk/a.aspx

try it in IE7 and then in Firefox...
the complete code is shown below:

First page (a.aspx) sets a session variable Session("ok") = "abc"

first link opens a new window (b.aspx) and prints out the value of Session("ok")

close it, and then click second link which opens c.aspx in same tab, and this also (tries to) print out Sesion("ok") - but in IE7 it can't because it's been lost....

What is going on?



a.aspx
------
<%@ Page Language="vb" debug="true" %>
<script runat="server">
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs)
Session("ok") = "abc"
End Sub
</script>
<HTML>
<HEAD>
<title></title>
</HEAD>
<body >
<form id="Form1" method="post" runat="server">
<a href="b.aspx" target="_blank">click me</a>
<br />then, after closing that window,
<a href="c.aspx">click me</a>
</form>
</body>
</HTML>


b.aspx
------
<%@ Page Language="vb" debug="true" %>
<script runat="server">
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs)
Label1.Text = Session("ok")
End Sub
</script>
<HTML>
<HEAD>
<title></title>
</HEAD>
<body >
<form id="Form1" method="post" runat="server">
<input name="btn" type="button" value="Close me" onclick="self.close()" />
<br />
<asp:label runat="server" ID="Label1"></asp:label>
</form>
</body>
</HTML>


c.aspx
------
<%@ Page Language="vb" debug="true" %>
<script runat="server">
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs)
Label1.Text = Session("ok")
End Sub
</script>
<HTML>
<HEAD>
<title></title>
</HEAD>
<body >
<form id="Form1" method="post" runat="server">
<a href="a.aspx">back</a>
<br />
<asp:label runat="server" ID="Label1"></asp:label>
</form>
</body>
</HTML>

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.