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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T02:59:43+00:00 2026-05-18T02:59:43+00:00

I want to first form a 3-digit code once a user enters some input

  • 0

I want to first form a 3-digit code once a user enters some input in a textbox.

I have a database table that has the text value that is to be entered in a text box for these text values there is corresponding numeric value which ranges from 3-999.

suppose user enters ‘asd’ and corresponding value in the database table is 9 (both ‘asd’ and ‘9’should be compared in the database table) than i want a 3-digit number to be formed as ‘009’.

Similarly there are other controls such as DropDownList and other textboxes from which the user input must be read and converted to a particular numeric code and thus finally forming a 14 digit code.

How can i achieve this. I want to know the way i should proceed with this. I am very new to programming.

  • 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-18T02:59:43+00:00Added an answer on May 18, 2026 at 2:59 am

    First get the data table from the database and hold it into the data table
    Then when the user write/select some values from the controls then call following method
    and pass the DataTable and the user Input.
    CompareItems Method will Return you the corresponding value of the UserInput.
    Add your login for creating 3 digit number.

    string spclDigit="";
    
    private void CompareItems(DataTable dbTable, string value)
    {        
        for (int j = 0; j < dbTable.Rows.Count; j++)
        {
            //In the Below 
            if (dbTable.Rows[j]["ColumnName"].ToString() == value)
            {
                string newCorrspndngValue= dbTable.Rows[j]["ColumnName"].ToString();
                //Generate the 3 Digit No Here.
                spclDigit=spclDigit +//Add ur logic to Generate the 3 digit number
            }
        }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have one form that has an option to open another (dialogue). I want
I have 1 page that displays a form with various dropdowns that are being
I have about 50 items on my screen. Each line is a form that
hi guys i have a html form where i have a textfield which is
I am new in .net.I need help. I have 2 forms one form has
For the purposes of this question, I do not have the ability to use
Is there a way to specify Unicode character literals in MySQL? I want to
Hey, I'm building a code editor app in VB.NET (Framework 4.0) and it opens
I have two forms: Form1 and Form2. I can get the contents of a

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.