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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T14:49:16+00:00 2026-06-07T14:49:16+00:00

I tried to check the given value is contained or not in particular field.

  • 0

I tried to check the given value is contained or not in particular field. Here the code what i wrote

bool _Contains = LabelDetails.Name.Contains("1");

Now want to check multiple value in cantains method.I tried like below but showing exception(“No overload for method ‘Contains’ takes 3 arguments“);

bool _Contains = LabelDetails.Name.Contains("1","2","3");
  • 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-06-07T14:49:17+00:00Added an answer on June 7, 2026 at 2:49 pm

    I assumed that you have one textbox with text values.Then you want check some list values are contained or not in your text box and get the result in bool(true or false). True means you want to do something.False means you want to do something

    List<string> Items = new List<string>() { "1", "2", "3" };
    foreach (string item in Items)
    {
        bool _Contains = TextBox.Text.Contains(item);
         if (_Contains == true)
            {
               //do something
            }
        else
           {
              //do something
           }
     }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Thanks for previous replies, I tried to check the data connection through code, I
I tried to write a function to check key code with JavaScript. It's working
I tried the below code to check whether my mobile is connected to a
How do I check if a textarea contains nothing? I tried with this code:
Here's a piece of code that I've written to check if the sum of
Well given I have a value I want to check for potential matches in
In perl, given a user inputted date, how can I check that is not
I tried to make ValidationAttribute which would check the database whether such an object.
Please check my website out: http://www.budgie.richardcmpage.com/index.php I've tried all sorts and can't get the
I'm trying to check a checkbox, i've tried doing the following :- $('#someId').attr('checked','checked'); $('#someId').attr('checked',

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.