Last post Dec 17, 2010 04:06 AM by sjnaughton
Dec 09, 2010 02:39 PM|tinac99|LINK
I have this table structure:
I created a custom page for Incentive - Edit and added a link "View Incentive Awardees" which will go to the List page of IncentiveAwardees table. However, I only want the list to show those under the IncentiveId from the previous page. Currently, the
IncentiveAwardees List page displays the awardeees of all incentives. Can anyone tell me how to filter it based on the Primary Key of the previous page?
I appreciate your input!
Dec 09, 2010 06:25 PM|ASP .NET CODER|LINK
Pass your IncentiveId in a query string and extract it on the next page:
Response.Redirect("IncentiveAwardees.aspx?IncentiveId=" + yourId);
string id = Request.QueryString("IncentiveId").ToString();
Dec 09, 2010 06:57 PM|tinac99|LINK
Yes, but how do I filter the List.aspx based on the IncentiveId? It still retrieves the whole list.
Dec 14, 2010 02:44 AM|Wencui Qian - MSFT|LINK
It depends on how do you retrieve the list. If you're using a datasource control, it's easy to fire up the selecting event and set the filter. If not, you can set the filter directly. Thanks.
Dec 17, 2010 04:06 AM|sjnaughton|LINK
Hi Tinac99, if you call a List.aspcx page with query string parameters that corrispond to the filter columns then the filters will auto filter for you. In your case the you would call the List page with
this should just work.
P.S. what version of DD are you running VS2010 or VS2008?
Dynamic Data 4