Problem: window.parent.location.href starts a new session when save button is clicked and I really do not want this to happen.
Page Layout: I have an old asp (vb6) app page Running with an I frame window opening the asp 2.0 page. I am using the latest ajax build. Save button is within a user control that delegates events to other pages to resolve.
What I Do Know: This works fine under Windows XP with Visual Studio 2005 testing. This works fine with Windows 2000 Server running IIS 5. This works fine with Windows 2008 Running IIS 7 in 64 bit mode.
This does not work under Windows 2003 running II6 in 64 bit mode. and this is where I really need it to work right now.
Conclusion: Am I even on the right track?
In the onLoad event of My aspx page.
CODE
'//Load Delegates
SigPanel.delHandler = New SignaturePanel.OnDelete(AddressOf SigPanel_delHandler)
SigPanel.svHandler = New SignaturePanel.OnSave(AddressOf SigPanel_svHandler)
'//Collect Path information for all forms from any server
provider = CType(HttpContext.Current, IServiceProvider)
util = CType(provider.GetService(GetType(HttpRequest)), HttpRequest)
wr = CType(provider.GetService(GetType(HttpWorkerRequest)), HttpWorkerRequest)
ImagePath = System.Configuration.ConfigurationManager.AppSettings("imagepath") & "/"
ImgPath = ImagePath.Replace("~", "../../..")
WebPath = wr.GetProtocol() & "://" & Request.Headers("HOST") & System.Configuration.ConfigurationManager.AppSettings("website") & "/"
In the Save Button Handler event
CODE
Response.Write("<br><b>Changes have been saved.</b><br>")
Response.Write("<img src=""" & ImgPath & "indicator_medium.gif"" width=20 height=10 /><em>Please wait while the page is refreshed...</em>")
Response.Write("<script>" & vbNewLine)
Response.Write("setTimeout(window.parent.location.href = """ & WebPath & "chartroom_chart.asp?TimeLastAccessed=" & Now() & "&DocumentType=NewEvaTreatmentPlan&ClientRecordID=" & Eva.GetClientRecordID(IDClient) & "&DocumentRecordID=" & IDRecord & "#NewEvaTreatmentPlan"", 500);" & vbNewLine)
Response.Write("</script>")