Copied to clipboard

Flag this post as spam?

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


  • Peester 14 posts 20 karma points
    Feb 23, 2009 @ 15:24
    Peester
    0

    QueryStrings

    Hi all,

    i have added a SearchResults control to a searchresults page via a macro, the usercontrol displays products based on a querystring. I am having trouble with the umbraco url rewriting, is there any easy way to get the querystring passed through to the usercontrol ?

    thanks!

  • Dirk De Grave 4541 posts 6021 karma points MVP 3x admin c-trib
    Feb 23, 2009 @ 20:11
    Dirk De Grave
    0

    Hi,

    Hmm, not sure what is not working. A querystring should always be available, no matter in what context (page, user control, ....). Or did I misunderstand the question?

    Regards,
    /Dirk

  • Nico Lubbers 151 posts 175 karma points
    Feb 23, 2009 @ 22:29
    Nico Lubbers
    0

    You can just use
    [code]string parameter = Request.QueryString["parameter"];[/code]

    Assuming that you already did that... is the usercontrol on a page which is also configured in the rewrite rules in the /config/UrlRewriting.config? If yes: plz post the corresponding line

    Nico

Please Sign in or register to post replies

Write your reply to:

Draft