Copied to clipboard

Flag this post as spam?

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


  • Sujith 9 posts 29 karma points
    Aug 06, 2010 @ 13:16
    Sujith
    0

    XSLT macro and User control macro

    Hi all

    I have created a .net user control with some functionality. Then i have a XSLT extension which has some functionality. Then i have created both the macros.

    I have implemented the both on a same page. Here i have an issue the XSLT macro is called first than User control macro. Can we make it other way round as i have to call my User control macro first.

    Any help please....

    Best Regards

    Sujith PV

  • Darren Ferguson 1022 posts 3259 karma points MVP c-trib
    Aug 06, 2010 @ 13:49
    Darren Ferguson
    0

    Can you explain why the order is significant.

    They shouldn't be dependent on one another and your issue is most likely a design flaw.

  • Sujith 9 posts 29 karma points
    Aug 06, 2010 @ 13:57
    Sujith
    0

    Hi Darren Ferguson

    Actually i have to perform some checking in the request object and need to place an information in the Cookie. Then xslt should call the cookie information. So her in my case the XSLT is called first and it will check for the cookie information and it cant find.

    Best Regards

    Sujith PV

  • Darren Ferguson 1022 posts 3259 karma points MVP c-trib
    Aug 06, 2010 @ 14:05
    Darren Ferguson
    1

    This isn't to do with the order of execution. A cookie won't be avaialble in the HTTP context in which it is set as it will need to be written to the browser which then makes it available to subsequent requests.

    Once the user control sets the cookie have it perform a client side redirect back to its containing page.

    Personally I would handle all of this logic in an HTTP module as you have more entry points into various stages of the request.

     

     

  • Sujith 9 posts 29 karma points
    Aug 06, 2010 @ 14:32
    Sujith
    0

    Thanks Darren Ferguson for your reply. i think it makes sense.

    Best Regards

    Sujith PV

Please Sign in or register to post replies

Write your reply to:

Draft