If i click on a link from a webControl, i am redirected to a new page. How do i read the content from that new page in c#? with the help of javascript(is my guess)...but how exactly?
The idea is to click on that link like i am clicking on a normal button from c# with code generating in c#. It's even possible?

2 answers
Judging by your previous posts, I assume you must be talking here about the Windows Forms WebBrowser control rather than an ASP.NET WebControl.
If you known the url that you will be directed to on clicking the link, then an easy way to do this would be to handle the WebBrowser's Navigated event and simply check that the new url is the same as the one you're interested in.
Suppose for example that the WebBrowser control is set to initially load the debugging.com home page and you want to know when the Users button is pressed. Here's how you could do it:
You can obtain the content (i.e. the html) of the current page using the webBrowser1.DocumentText property.
answered one year ago by:
17279
349
yes, you are right, im not into ASP.Net. Your little test worked like a dream. Thank you so much.
a little bug i encounter:
answered one year ago by:
349
17279
I think the Navigated Event is firing multiple times because those particular pages have multiple frames. Try handling the Navigating event instead which doesn't appear to suffer from this problem.