Solved

how can i get html source of the webpage

Posted on 2009-06-29
4
257 Views
Last Modified: 2013-11-26
Hi,

     using vb.net how can we get the html source of a webpage using webbrowser window.for eg (www.experts-exchange.com) after we login in it i want the html source of that page.
0
Comment
Question by:sreeram01
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
4 Comments
 
LVL 29

Expert Comment

by:QPR
ID: 24742773
0
 
LVL 70

Accepted Solution

by:
Éric Moreau earned 20 total points
ID: 24744185
0
 

Expert Comment

by:cee_karthi
ID: 24986545
To get the source of webpage using VB.NET, you can use

DocumentCompleted(ByVal sender As Object, ByVal e As System.Windows.Forms.WebBrowserDocumentCompletedEventArgs) Handles WebBrowser.DocumentCompleted

function in webrowser tool. In documentcompleted funtion , you should use

doc.documentElement.innerHTML

subfunction to get the HTML source code of webpage you are going to access. Try your program using this following code lines and you can get through it. All the Best and feel free to post any comment in experts-exchange...

Bye !
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

734 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question