How to get datasource on filter webpart through code behind

Iman Emran asked on October 17, 2016 07:26


I have a "Pages Data Source", "Basic Repeater" and some "Filter" webparts which were chained together and connected to the pages data source. Now I am going to access to the "Pages data source" on filters webparts through code behind so how can I do that?


Recent Answers

Laura Frese answered on October 17, 2016 07:44

In the pages data source there is a Field called Filter Name. To apply a filter to a data source, you just enter the control ID of the filter web part in that field in the data source web part. When creating the filter, if you havent already, take a look at the documentation

The key things here are

    this.WhereCondition = where;
0 votesVote for this answer Mark as a Correct answer

Iman Emran answered on October 17, 2016 12:05

Hi Laura,

I know how to create chain filters but I want to access Data source control in code behind of filter to count number of items which are shown after filter changed in repeater.

How can I find the number of items in filter code behind?

1 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.