public
-
11/24/2009 11:01:59 AM
Custom SharePointDataViewer DataBind
Hi,
I am trying to create a modified version of the SharePointDataViewer to allow filtering of the displayed data using a an asp dropdownlist.
I have a dropdownlist control with an OnSelectedIndexChanged Event which should specify a new Query for the SPDataSource based on the value selected in the DDL (See below). I've tried several ways of forcing the repeater to show the data as it should based on the CAML query I set but it only ever has the original list of items from when the page is loaded.
Query = string.Format("<Where><Eq><FieldRef Name=\"Location\" /><Value Type=\"Text\">{0}</Value></Eq></Where>", _uiFilterDdl.SelectedValue); repItems.ReloadData(true);
Thanks, Kieran
|