Solved

how can i get html source of the webpage

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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
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…

688 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