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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T09:33:47+00:00 2026-06-05T09:33:47+00:00

I have a system that basically copies data from other databases to my own

  • 0

I have a system that basically copies data from other databases to my own SQL Server so I can format the data to suit my needs. That data is used to populate dropdowns to end up with a variable can return the rows I want to show to the user.

All of the databases I’ve encountered up to now had a logical way the data of the dropdowns was stored. But now I have one that is different and not logical.

What I want to do is use the existing website that provides a somewhat logical dropdown itself to get the data I need. That dropdown fills a multiple selection dropdown after a selection.

I want to select each option in the first dropdown and then read the data it puts in the second multiple selection dropdown. Is there a way to do this?

  • 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-05T09:33:49+00:00Added an answer on June 5, 2026 at 9:33 am

    What you essentially want to do is web scraping. In a similar project, this is what I did:

    1. Use the available objects in .NET that can send http requests and can receive http responses. In my case, I used WebClient:

          byte[] response;
          using (var client = new WebClient())
          {
              try
              {
                  response = client.UploadValues(URL, "POST", postData);
              }
              catch (Exception ex)
              {
                  // Log error here                  
              }
          }
      
    2. See the postData? This is a NameValueCollection that contains the data that is sent by the page when you do a POST. Use Fiddler or a similar tool to find out what data needs to be included. If the page uses .NET web forms, you may have to do something special for the __VIEWSTATE, like do a sample request and get the __VIEWSTATE value from there. Here’s a sample for postData:

          var postData = new NameValueCollection();
          postData.Add("__EVENTTARGET",  "");
          postData.Add("__EVENTARGUMENT", "");
          postData.Add("__VIEWSTATE", "");
      
    3. Use HtmlAgilityPack to easily “parse” the response that you get when you post. Using Xpath, you will be able to get the new items in the second dropdown.

          var doc = new HtmlDocument();
          doc.Load(new MemoryStream(requestBytes));
          return doc;
      
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a web based CRM system that stores all the client data from
My site is going to have a credit system that basically works a lot
I have a system that takes dynamic data, puts it in HTML for layout
I have a system that has many components interacting with each other. It occured
right, basically we have a link into our system that is all lowercase but
I have the following data that basically I only need a few bits of
I have a distributed system that basically executes processes (not OS processes, just stuff
In our backoffice we have a core-system that generates models from the DB. When
We have a production system that uses a lot of Serialization. What be basically
We have system here that uses Java JNI to call a function in 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.