Thanks Steve,
Before we looking into depth of your code logic or your web shop, I'd like
to confirm whether this is a environment specific problem. Based on my
local test, I can read and update Sessionstate(sqlserver mode) in the aspx
inline code. Here is my test page:
==================================
<HTML>
<HEAD>
<title>inlineSessionProcess</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>
<body>
<%
Response.Write("<br>FirstLoop:");
foreach(string key in Session.Keys)
{
Response.Write(string.Format("<br/>{0}: {1}", key, Session[key]));
}
%>
<%
if(Request.Form["override"] != null)
{
Session["txt1"] = Request.Form["txt1"];
Session["txt2"] = Request.Form["txt2"];
Session["txt3"] = Request.Form["txt3"];
Session["txt4"] = Request.Form["txt4"];
}
%>
<form id="Form1" method="post" runat="server">
<br/><INPUT name="txt1" type="text">
<br/><INPUT name="txt2" type="text">
<br/><INPUT name="txt3" type="text">
<br/><INPUT name="txt4" type="text">
<br/><input type="checkbox" name="override" />
<br/><INPUT name="btnSubmit" type="submit" value="Submit">
</form>
<%
Response.Write("<br>SecondLoop:");
foreach(string key in Session.Keys)
{
Response.Write(string.Format("<br/>{0}: {1}", key, Session[key]));
}
%>
</body>
</HTML>
================================
Is the above code able to repro the problem on your side? Or shall I miss
anything else so as to repro the problem?
Thanks,
Steven Cheng
Microsoft Online Support
Get Secure!
www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)