Hello Wisej team,
1 Is Wisej version of session (Application.Session) works differently than asp.net session (HttpContext.Current.Session)? and why?
In Desktop based application, I noticed that Application.Session get cleared/destroyed when new same page is opened in browser while HttpContext.Current.Session preserve the state as intended.
2. Let say I have a HttpHandler : IHttpHandler which deals with some specific POST requests and needed to redirect to another (home) page in some cases. What would be the best practice to redirect the request?
The problem is that right now I use HttpContext.Current.Response.Redirect(“/”, false); but it works fine only if the page was not loaded. In cases if it’s loaded already (Load event triggered), Redirect method does not fire Load event again. How would I be able to redirect the request and interact with Wisej UI after it?
I also tried to use Wisej Application.Navigate(“/”) in httphandler, but it does nothing
(I’m aware of usage HttpHandlerRequiresSession if it matters)
2. You cannot redirect from “/“ to “/“. It’s the same URL. You are confusing the Load event in Aspnet with the Load event in Wisej. It has nothing to do with the browser load or reload.
Wisej is not Aspnet and Wisej pages are not aspnet pages.
if you put together a small sample showing what you are trying to do we may be able to help you further.
Please login first to submit.