I have a template with 2 macros. 1. xslt file and 2.user control.
The xslt file renders a form on the page based on an extension method. The form then posts back to itself and the user control then gathers the information from the form and does some business logic. If it succeeds then the user control redirects to another page. If it fails it sets a session variable and comes back to the same page, which read this session variable to render the message.
The problem is this: When the business logic fails and the same page is re-rendered it does not read the session variable. But when I refresh the page, it seems to find it. How do I make sure that the Session variable is read the first time and not when I refresh the page?
I am not sure if all this makes sense. Please let me know if it doesnt. Any help would be greatly appreciated.
Umbraco Accessing session variable in XSLT
Guys,
I have a template with 2 macros. 1. xslt file and 2.user control.
The xslt file renders a form on the page based on an extension method. The form then posts back to itself and the user control then gathers the information from the form and does some business logic. If it succeeds then the user control redirects to another page. If it fails it sets a session variable and comes back to the same page, which read this session variable to render the message.
The problem is this: When the business logic fails and the same page is re-rendered it does not read the session variable. But when I refresh the page, it seems to find it. How do I make sure that the Session variable is read the first time and not when I refresh the page?
I am not sure if all this makes sense. Please let me know if it doesnt. Any help would be greatly appreciated.
Thanks in advance
Vijay
is working on a reply...