Solved

how can i get html source of the webpage

Posted on 2009-06-29
4
254 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
4 Comments
 
LVL 29

Expert Comment

by:QPR
ID: 24742773
0
 
LVL 69

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

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…

762 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

Need Help in Real-Time?

Connect with top rated Experts

25 Experts available now in Live!

Get 1:1 Help Now