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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T18:41:51+00:00 2026-06-04T18:41:51+00:00

Currently I have a website loaded in a WebBrowser component, which keeps changing stuff

  • 0

Currently I have a website loaded in a WebBrowser component, which keeps changing stuff inside a certain <a> inside the page. In order for me to get the data, I have to create another WebRequest each 5 seconds, just to refresh the data (I think they’re called dynamic pages). I’ve tried fetching the data from the WebBrowser (WebBrowser.DocumentText), but the value just remained the same, even though I am pretty sure it changed, because I can see it changed. I think the webrequest each 5 seconds takes up unnecesary memory space, and that this can be done easier.

Do you guys maybe know a way for me 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-04T18:41:53+00:00Added an answer on June 4, 2026 at 6:41 pm

    Guessing at Winforms. You’ll want to use the Document property to read back the DOM. Here’s an example. Start a new Winforms project and drop a WebBrowser on the form. Then a label and a timer. Make the code look like this:

    public partial class Form1 : Form {
        public Form1() {
            InitializeComponent();
            webBrowser1.Url = new Uri("http://stackoverflow.com/questions/10781011/get-source-of-webpage-in-webbrowser-c-sharp");
            webBrowser1.DocumentCompleted += webBrowser1_DocumentCompleted;
            timer1.Interval = 100;
            timer1.Tick += new EventHandler(timer1_Tick);
        }
    
        void timer1_Tick(object sender, EventArgs e) {
            var elem = webBrowser1.Document.GetElementById("wmd-input");
            label1.Text = elem.InnerText;
        }
    
        void webBrowser1_DocumentCompleted(object sender, WebBrowserDocumentCompletedEventArgs e) {
            timer1.Enabled = true;
        }
    }
    

    The browser will navigate to your question. Type something in the Answer box, note how the label displays what you typed.

    You’ll need to tweak this code to work with your specific web page, alter the “wmd-input” element name. Use a DOM inspection tool to find the name. I like Firebug.

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

Sidebar

Related Questions

I currently have the following code for EVERY page on my website. Please could
I have a website which fetches information from RSS feeds periodically (well, currently manually,
I currently have a website that I am trying to optimize in terms of
We currently have a website at somedomain.net/codefest. We do not own this server (or
I currently have a website where I'm hosting a webservice with several web methods,
Currently I have a website and database solution, however I would like to take
I currently have a news website setup in PHP/MYSQL that's a bit old and
Currently I have create a website using codeigniter. I got a message error every
I currently have profiles on my website with a unordered list for the navigation,
I'm working on a website that hosts music, pictures, and videos. I currently have

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.