Dear ijoubert ,
Thank you for your post!
The problem roots in a quirk of IE. While IE is processing the Form.Submit routine in modal dialog window, it'll open a new window and may create this window with another session context by default.
To avoid this problem, you can try the directive:
<base target="_self">
that needs to be put in the popup page between the <HEAD> and </HEAD> tags.
For some low version of IE doesn't support this tag, another way to prevent this problem is using frameset to wrap the popup page as below:
1. create an intermedial page as following:
[IntermedialPage.aspx example]
<%@ Page language="c#" Codebehind="IntermedialPage.aspx.cs" AutoEventWireup="false" Inherits="ASPXpand.SessionDemo.IntermedialPage" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<html>
<head>
<title>IntermedialPage</title>
<meta name="GENERATOR" Content="Microsoft Visual Studio .NET 7.1">
<meta name="CODE_LANGUAGE" Content="C#">
<meta name=vs_defaultClientScript content="JavaScript">
<meta name=vs_targetSchema content="http://schemas.microsoft.com/intellisense/ie5">
</head>
<frameset rows="0,*">
<frame src="about:blank">
<frame src="YourPopUp.aspx">
</frameset>
</html>
2. Popup the IntermedialPage.aspx in XLib.OpenPopup routine instead of YourPopUp.aspx.
By the way, our developers are discussing this issue for finding another more flexible solution, we'll include it into the next release if we got any.
Thank you again for sharing your experience with Aspose's products, please feel free to let us know if you have any problem.
Dean Deng
Lead Developer
Aspose Guangzhou Team
About UsContact Us