Hi Matt you can do this, but it's a lot of work there was a post on here a good while ago where David Ebbo posted a sample for compound PK's so I think his sample could be adapted. see
Manual Scaffolding and Routing Davids sample is in there about the third page.
See my blog C# Bits | Twitter @sjnaughton Always seeking an elegant solution.
Steve, that's helpful but not exactly what I was looking for. I am trying to preserve the FILTER parameter
within the querystring so as to be able to POINT other users to what page I have filtered, or to
bookmark favorite filters. In other words, I am OK with this Products/Details.aspx?Productid=1 ( a Product detail ) but also want this Products/List.aspx?CategoryId=4 (a bookmarkable filtered list )
Hi Matt, so you want to be able to bookmark certian filers? using the normal Favoites? I asume not as that sould work out of the box. So how do you want to bookmark them?
See my blog C# Bits | Twitter @sjnaughton Always seeking an elegant solution.
No I am not getting filtering in the URL out of the box. I fire up a new DD site, Add a parent table (Categories) and a child table(Products), and when filtering the List.aspx page of the child, the rewritten URL remains
MattDub
Member
68 Points
66 Posts
In Dynamic Data. is there a way to configure routes to add filters to URL?
Sep 16, 2011 08:02 PM|LINK
In Dynamic Data list using filters, the URL does not generate the query provided. For example, the URL for Products is by default
http://mysite.com/Products/List.aspx
then selecting a single Category filter, I want something like
http://mysite.com/Products/List.aspx?CategoryId=4
but this is not generated in the URL. Is there a clean recommended way to do this?
sjnaughton
All-Star
27391 Points
5485 Posts
MVP
Re: In Dynamic Data. is there a way to configure routes to add filters to URL?
Sep 16, 2011 09:46 PM|LINK
Hi Matt you can do this, but it's a lot of work there was a post on here a good while ago where David Ebbo posted a sample for compound PK's so I think his sample could be adapted. see Manual Scaffolding and Routing Davids sample is in there about the third page.
Always seeking an elegant solution.
MattDub
Member
68 Points
66 Posts
Re: In Dynamic Data. is there a way to configure routes to add filters to URL?
Sep 21, 2011 06:24 PM|LINK
sjnaughton
All-Star
27391 Points
5485 Posts
MVP
Re: In Dynamic Data. is there a way to configure routes to add filters to URL?
Sep 21, 2011 08:46 PM|LINK
Hi Matt, so you want to be able to bookmark certian filers? using the normal Favoites? I asume not as that sould work out of the box. So how do you want to bookmark them?
Always seeking an elegant solution.
MattDub
Member
68 Points
66 Posts
Re: In Dynamic Data. is there a way to configure routes to add filters to URL?
Sep 21, 2011 11:30 PM|LINK
No I am not getting filtering in the URL out of the box. I fire up a new DD site, Add a parent table (Categories) and a child table(Products), and when filtering the List.aspx page of the child, the rewritten URL remains
/Products/List.aspx
, no matter what filtering i perform...
sjnaughton
All-Star
27391 Points
5485 Posts
MVP
Re: In Dynamic Data. is there a way to configure routes to add filters to URL?
Sep 22, 2011 09:32 AM|LINK
Sorry Matt, is this a custom page with two tables on it?
Always seeking an elegant solution.