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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T01:33:14+00:00 2026-05-18T01:33:14+00:00

I have a dropdown list which has items bound to it using sql datasource.

  • 0

I have a dropdown list which has items bound to it using sql datasource.

In the database i have the numeric values corresponding to each item.

Now there are many such dropdown list’s and on selection of each item i want to form a 14 digit numeric code,which i need to use further for some more functionality.

How can i convert a selected item from a dropdownlist to a numeric digit??or how can i bind the items in the dropdownlist to a database having numeric value for each item?Please help.

E.g if i select 'WT' from dropdown list the corresponding value for it in the database table is 39 so on form submit i want '39' to be formed in codebehind. likewise on selection of all items from different dropdown list the digit formed using codebehind should be '15487523568955'

  • 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-18T01:33:14+00:00Added an answer on May 18, 2026 at 1:33 am

    Ok while binding your dropdown list to the sql datasource, you have to make sure that you bind

    dropdownlist.DataSource = <GetSQLDataSource>();
    dropdownlistDataTextField="<textvalue>"; 
    dropdownlistDataValueField="<numericID>";
    dropdownlist.DataBind();
    

    Then, the Textvalue will be displayed in hte dropdown list and then you can access the corresponding .

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

Sidebar

Related Questions

Afternoon All, I have a dropdown list which extracts data from my SQL database
I have a database of Employees and a dropdown list which I generated with
I have a drop down list box which has one of the values to
I have a Gridview for which Dropdown list has to be added on the
I have DataTable which feeds a dropdown list. The values of this dropdown persist
I have some html that creates a dropdown list. The list has text values
I have code which has a drop down list. And when a certain option
I have a dropdown list (FK) which I would like to set and display
I have a drop-down list which is generated based on the following sql query:
I have a drop down list which is dynamically generated using ajax on page

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.