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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T09:24:01+00:00 2026-06-12T09:24:01+00:00

Im retriving data from a database displayed on a dropdownlist. The dropdown display the

  • 0

Im retriving data from a database displayed on a dropdownlist. The dropdown display the streetname along with the number of the house. An example from my data is: “Streetname 44”. Now when the data isretrived and displayed on the dropdown, I want to save the data into another table in the database, but this time i want the “Streetname” to be on the “street-column” and the “44” stored in the “number-column”.
Im using LINQ to store my data and so far I have this:

         using (DB_Entities tt = new DB_Entities())
        {
            Address va = new Address();
            va.Street = ListItemStreet.SelectedItem; // I only want the Strings from the itemlist
            va.HouseNo = ListItemStreet.SelectedItem; // I only want the number from the itemlist

            tt.ValidateAddress.AddObject(va);
            tt.SaveChanges();

            if (tt != null)
            {
                AddError.Text = "Saved!";
            }
            else
            {
                AddError.Text = "Error";
            }
    }

EDIT: It’s not a textbox but a Itemlist were the street is retrieved

  • 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-12T09:24:01+00:00Added an answer on June 12, 2026 at 9:24 am

    You can parse like this:

    string address = "Streetname 44";
    
    var index = address.LastIndexOf(' ');
    
    var houseNo = address.Substring(index + 1);
    var streetName = address.Remove(index);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have one problem regarding retriving data from database. I have created one database
I'm retrieving data from database and display it inside textarea in table format, I
I am retrieving whole data from database in list?Now i have four class like:
For some reason I'm having a problem retrieving data from my database. It leaves
I am retrieving data from an Oracle database and binding the same to a
Currently, I'm retrieving some data from a MySQL database table, but the problem is
I am retrieving data from a SQL table so I can display the result
I have a problem with retrieving data from a database using PHP statements. At
I am pulling data from a database with Ajax and dynamically populating a div
Hi im retrieving some data from a database using JSON and ajax. When i

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.