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

  • Home
  • SEARCH
  • 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 3930690
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T23:16:50+00:00 2026-05-19T23:16:50+00:00

PartNumbers Loaded : P0001 – Not on DB P0002 – Not on DB P0003

  • 0
 PartNumbers Loaded :
                     P0001        - Not on DB
                     P0002        - Not on DB
                     P0003        - On DB
                     P0004        - On DB

Code:

     int i = 0;
        //Loop Records per Row
        foreach (var serverA in load)
        {

              var obj = new Bal();
              var ent = new Entity
                      {
                      PartNumber = serverA.PartNumber.ToString()
                      };


                      _dSet = obj.SelectPartNumber(ent);

                     //CHECK IF PART NUMBER EXIST ON DB
                     if (_dSet.Tables[0].Rows.Count > 0)
                         {

                         }
                         else
                         {
                            i++; //Count Part Numbers not exist on  DB
                         }

       }
    lblStatus.Text = i > 0 ? @"PartNumbers not on DB" : @"Data has been Loaded";

In this Code:( i ) value is equal to 2 and Display PartNumbers not on DB.

My Problem is how can i display the part numbers that do not exist on DB and display it on any container(Message Box etch.).

Ex:
    PartNumber Not on DB
           P0001
           P0002

Thanks in Regards!

  • 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-19T23:16:51+00:00Added an answer on May 19, 2026 at 11:16 pm

    Where you’re incrementing the count you probably want to add the part number to a list. you can then use the list to generate the text to display. Using a StringBuilder instead of a list would probably work okay, too.

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

Sidebar

Related Questions

I can store records in the DB by using combobox with the following code.
An attempt has been made to Attach or Add an entity that is not
This is my Code: var dsdata = ibll.showPartnumberandVariance(ient); data result: PartNumber Variance 001 1
Can anyone tell me the exact syntax for NOT IN condition in SQL on
I'm trying to code a small program for my friend's company. They build metal
The following piece of code keeps giving me an error message of: Object reference
I have a rule that works for one direction but, not the other. A
Here's my code: Image partNumberImage = Toolkit.getDefaultToolkit().getImage(D:/partNumber.png); Image lotNumberImage = Toolkit.getDefaultToolkit().getImage(D:/lotNumber.png); Image dteImage =
I have a table that hold records of part numbers for a specific project
To my understanding by serverSocket = new ServerSocket(portNumber) we create an object which potentially

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.