Solved

how can i get html source of the webpage

Posted on 2009-06-29
4
256 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 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

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
export data table to excel in vb.net 10 25
.NET 2008 VB and C# 6 27
location of a form 2 12
VB.net Progress Bar - Maximum Value too large 2 10
When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
This article shows how to deploy dynamic backgrounds to computers depending on the aspect ratio of display
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…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

776 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