Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7635705
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T07:29:36+00:00 2026-05-31T07:29:36+00:00

So I have two filtering objects. One is a drop down list, which chooses

  • 0

So I have two filtering objects. One is a drop down list, which chooses the group of users to look at. Next is the user search box. I would like to use this to filter the results further so that you can search for a user in the chosen group.
I have tested the group filter and it works on it’s own (without the inclusion of the searchbox).

Now, the problem I face is the default view. What I want to also be able to do is choose a group without putting in a user, giving me the complete list of users in that group. Then if I want to filter it down more I would use the searchbox.

Currently I have to use the searchbox in order to have any results show. I suspect it’s the default value I have set for the searchbox control parameter, but I am unsure how to fix it (I have tried putting the wildcard in but then it doesn’t filter by group anymore)

Here is the filter expression:

FilterExpression="(([Field1] = {0}) AND ([Field2] LIKE '%{1}%'))"

And here are the parameters:

    <FilterParameters>
    <asp:ControlParameter ControlID="DDL" Name="Field1" 
                          PropertyName="SelectedValue" 
                          Type="Int32" />
    <asp:ControlParameter ControlID="SearchBox" Name="Field2"  
                          Type="String" />
    </FilterParameters>

<SelectParameters>
     <asp:ControlParameter ControlID="DDL" Name="Field1" PropertyName="SelectedValue" Type="Int32" />  
     <asp:ControlParameter ControlID="SearchBox" Name="Field2" Type="String" DefaultValue="" />  
</SelectParameters>

Any help would be greatly appreciated!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T07:29:37+00:00Added an answer on May 31, 2026 at 7:29 am

    Put default value as “” in filter parameter for search box.

    <FilterParameters>
        <asp:ControlParameter ControlID="DDL" Name="GroupId" 
                          PropertyName="SelectedValue" 
                          Type="Int32" />
        <asp:ControlParameter ControlID="SearchBox" Name="UserName"  
                          Type="String" DefaultValue=""/>
    </FilterParameters>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have two arrays of System.Data.DataRow objects which I want to compare. The rows
Have two actionsheet buttons and one modalviewcontroller on mainviewcontroller in application. Now for two
I have two classes, and want to include a static instance of one class
I have two threads, one needs to poll a bunch of separate static resources
I have two spreadsheets... when one gets modified in a certain way I want
I have a IEnumerable collection of objects. The objects have a field LastedUpdated which
I have a function for which i am sharing a group of link buttons
I have two tables: 1. tableA is a list of records with many columns.
I have two IEnumerable collections that I would like to union. One selects news
Let's say I have two classes that look like this: public class ByteFilter {

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.