Hello,
I am working on a complex CMS which I have not written myself, which uses ASP.NET Ajax. It seems that starting with ASP.NET 3.5 SP 1, the ScriptManager control in the ASP.NET AJAX Framework includes functionality for creating history points in an AJAX-enabled web page.
This creates a string at the end of the URL, used for this issue. Through Google I found that when "EnableStateHash = true" the result is something like Example: Default.aspx#&&/wEXAQUFaW5kZXgFATFywiqnhio4diSZ0PbZMAUM2NG7xg And when "EnableStateHash = false" the result is something like Default.aspx#&&index=1
The Problem
When I log out, the HashCode is still there at the URL. and when loging back into the system this Hash causes everything to crash.
I tried explicitly making the logout going straight to "default.aspx" without any params at the URL, hoping this would eliminate the Hash at the end of the URL. no such luck.
I also tried making the login page itself "default.aspx", check if there is a ".aspx#&&" in the URL. However there is no way I have succeeded in that. None of the following methods "know" that there is something/anything after the ".aspx" at the pages URL. That in itself is amazing to me.
Request.URL.ToString() Request.RawUrl.ToString() Any of the Request.Servervariables such as Request.Servervariables("URL") or any other Request.Servervariable
Any ideas?
Many thanx
Ran