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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T08:15:55+00:00 2026-05-27T08:15:55+00:00

I need to retreive results from a website into my ASP.NET (c#) application. (the

  • 0

I need to retreive results from a website into my ASP.NET (c#) application. (the required data are soccer fixtures results).

For what I’ve come to realize, I need to somehow use the “ViewState” right?

I actully need to somehow “right-click” the website and “select” “view source”.. (I need this process to be executed automatically)

Can someone please explain to me how I can achieve that?

  • 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-27T08:15:55+00:00Added an answer on May 27, 2026 at 8:15 am

    You don’t need to worry about ViewState because it will be rendered on the page as a hidden html element with its corresponding value.

    You can simply do this (taken from MSDN):

    Console.Write("\nPlease enter a URI (for example, http://www.contoso.com): ");
    string remoteUri = Console.ReadLine();
    
    // Create a new WebClient instance.
    WebClient myWebClient = new WebClient();
    // Download home page data.
    Console.WriteLine("Downloading " + remoteUri);                        
    // Download the Web resource and save it into a data buffer.
    byte[] myDataBuffer = myWebClient.DownloadData (remoteUri);
    
    // Display the downloaded data.
    string download = Encoding.ASCII.GetString(myDataBuffer);
    Console.WriteLine(download);
    
    Console.WriteLine("Download successful.");
    

    When you run above code you’ll see that download has the actual html content, which is what you want.

    Now, it seems that what you really need is an HTML parser that can allow you to get the content of specific section of page and do something with it. For that, the most popular tool is HTMLAgility pack. Examples provided on the website.

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

Sidebar

Related Questions

I need to retrieve data from several rows and then insert the results into
I am developing a website using Asp.Net MVC framework. We need to add general
I need to retrieve a value from a website (can vary and I have
I need to retrieve data (vehicle details, in this case) from a MySQL table
I am reading this asp.net article on building your first asp.net mvc 2 website
I need retrieve data from 2 tables at the same time, the tables are
I'm doing a facebook integration with django-facebook so I need to retrieve data from
I am very new to SQL and i need to retreive a number of
Hi I'm new to Oracle 10g. I need retrieve the all the sublist from
I need to retrieve information from two separate models which are similar but not

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.