Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Vijay 30 posts 47 karma points
    Dec 17, 2009 @ 03:05
    Vijay
    0

    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

Please Sign in or register to post replies

Write your reply to:

Draft