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 4255900
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T05:16:49+00:00 2026-05-21T05:16:49+00:00

I have a textbox with button wired up to a queryextender. My goal is

  • 0

I have a textbox with button wired up to a queryextender. My goal is that someone might enter into the textbox a name (e.g. “Dave Mackey”) and receive back all relevant results. The problem is that this information is spread across two columns in the underlying database (e.g. FIRST_NAME, LAST_NAME). My code looks like this:

 <asp:QueryExtender ID="QueryExtender1" runat="server" TargetControlID="EntityDataSource1" >
    <asp:SearchExpression DataFields="first_name,last_name" SearchType="Contains">
        <asp:ControlParameter ControlID="txtFilterText" />
    </asp:SearchExpression>
</asp:QueryExtender>

If I enter “Mackey” it returns results, but “Dave Mackey” returns no results, I’m assuming b/c it is looking for the entire value in one first (either, but not both together), whereas I want it to return any rows where it finds the entirety even if it is spread across multiple DataFields. Any ideas?

  • 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-21T05:16:50+00:00Added an answer on May 21, 2026 at 5:16 am

    You are correct in your assumption.
    QueryExtender‘s SearchExpression performs the search using the entire txtFilterText in each field in the DataFields enumeration.
    What about using Dynamic LINQ and specifying a custom query in the EntityDataSoure OnSelecting event?

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a textbox and button in an aspx page. I enter some text
I have a textbox for search and a button that redirects to given value
i have login page with 2 textbox and 1 button <input name=txtUserName type=text value=666
I have 2 textBox and 1 button! I want to insert text to one
In my code I have one textbox and one button. Whatever place you type
I have a windows application containg diffrent controls like label,textbox,button.. And I need to
Here's the scenario: I have a textbox and a button on a web page.
I have a textbox and a link button. When I write some text, select
I have a textbox with an 'Add to clipboard' button next to it. Whenever
This is my problem, I have one textbox, one button and one label. Everything

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.