Copied to clipboard

Flag this post as spam?

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


  • Dave Woestenborghs 3504 posts 12135 karma points MVP 9x admin c-trib
    Feb 02, 2010 @ 19:50
    Dave Woestenborghs
    0

    Not working for pages with Alttemplate

    When I call page with a alttemplate this turns up with a  empty response. This page worked when I had no compression activated.

     

    Dave

  • Peter Dijksterhuis 1442 posts 1722 karma points
    Feb 02, 2010 @ 19:54
    Peter Dijksterhuis
    0

    How exactly are you calling the page with the alttemplate?

    Peter

  • Dave Woestenborghs 3504 posts 12135 karma points MVP 9x admin c-trib
    Feb 03, 2010 @ 10:00
    Dave Woestenborghs
    1

    I'm calling it with the querystring like /mypage.aspx?altTemplate=AjaxTemplate

    I tried calling it with /mypage/Ajaxtemplate.aspx and that seems to work.


    Dave

  • Peter Dijksterhuis 1442 posts 1722 karma points
    Feb 03, 2010 @ 10:15
    Peter Dijksterhuis
    0

    That would have been my suggestion (should have written that here in the first place I guess)

    Glad it works

  • Dave Woestenborghs 3504 posts 12135 karma points MVP 9x admin c-trib
    Feb 03, 2010 @ 12:08
    Dave Woestenborghs
    0

    So the solution is :

    Call your page with alt template like this : /yourpage/yourtemplate.aspx

    And add this to the excludepaths section in the config file

    <add path="yourtemplate.aspx" />

    The alt template won't be compressed. But this is the only way i got it to work

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies