954,517 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

How to get HTML Source of web page opened by web browser using vb.net

hello friends,

i have opened an web browser in vb.net using the below code

Private
Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click 

Dim nullObject As System.Object = 0 

Dim str As String = "" 

Dim nullObjStr As System.Object = str 

Windows.Forms.Cursor.Current = Cursors.WaitCursor

Dim i As Int16 

For i = 1 To 2 

AxWebBrowser1.Navigate(
"http://www.google.co.in/search?hl=en&q=test&meta=", True) 

AxWebBrowser1.Document. 

Next 

Windows.Forms.Cursor.Current = Cursors.Default

End Sub


i am getting the new window with the above URL.After going to that URL how to get the HTML source of that page.i need the code to access the the HTML source of that page.Please help me.

with regards,
sreeram

sreeram01
Newbie Poster
14 posts since Jun 2009
Reputation Points: 10
Solved Threads: 0
 
sknake
Industrious Poster
4,954 posts since Feb 2009
Reputation Points: 1,764
Solved Threads: 735
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You