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 ?
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?
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
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!
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
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
is working on a reply...