JavaScript
--
Questions
--
Followers
Top Experts
downloading a webpage
Hello Experts
I am trying to download a webpage
and then programmatically clck on any button
AS an example I am using https://www.msn.com/en-us
My visual c# code is as follows
    private void button2_Click_1(object sender, EventArgs e)
    {
      string url = textBox_url.Text;
      WebClient webClient = new WebClient();
      webClient.DownloadFileComp leted += new AsyncCompletedEventHandler (Completed );
      webClient.DownloadProgress Changed += new DownloadProgressChangedEve ntHandler( ProgressCh anged);
      webClient.DownloadFileAsyn c(new Uri(url), @"c:\tmp\aaaaaaa___myfile. txt");
    }
the problem is once I get the source code
I do not get the information of the lower part of the web page.
Like the small squares with additional news not as important as the main body
Why am I not getting the full code of the web page?
Are these js scripts that should be downloaded separately?
REgards,
I am trying to download a webpage
and then programmatically clck on any button
AS an example I am using https://www.msn.com/en-us
My visual c# code is as follows
    private void button2_Click_1(object sender, EventArgs e)
    {
      string url = textBox_url.Text;
      WebClient webClient = new WebClient();
      webClient.DownloadFileComp
      webClient.DownloadProgress
      webClient.DownloadFileAsyn
    }
the problem is once I get the source code
I do not get the information of the lower part of the web page.
Like the small squares with additional news not as important as the main body
Why am I not getting the full code of the web page?
Are these js scripts that should be downloaded separately?
REgards,
Zero AI Policy
We believe in human intelligence. Our moderation policy strictly prohibits the use of LLM content in our Q&A threads.
ASKER CERTIFIED SOLUTION
membership
Log in or create a free account to see answer.
Signing up is free and takes 30 seconds. No credit card required.
SOLUTION
membership
Log in or create a free account to see answer.
Signing up is free and takes 30 seconds. No credit card required.
Thank you so much Experts!!






EARN REWARDS FOR ASKING, ANSWERING, AND MORE.
Earn free swag for participating on the platform.
JavaScript
--
Questions
--
Followers
Top Experts
JavaScript is a dynamic, object-based language commonly used for client-side scripting in web browsers. Recently, server side JavaScript frameworks have also emerged. JavaScript runs on nearly every operating system and in almost every mainstream web browser.