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

hello friends,

        i have opened an web browser in using the below code


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


"", True)



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,


2/5/2007 11:05:10 AM 3721 articles. 0 followers. Follow

1 Replies

Similar Articles

[PageSpeed] 18

I had to do this awhile ago, but unfortunately I do not have the source available.  I refound it (in a C++ .NET question) and I believe it should work:

Dim objDocucment As mshtml.HTMLDocument = CType(AxWebBrowser1.Document, mshtml.HTMLDocument)


Before using the Document property, you must be sure that the page has actually loaded.  You can either add an event handler to wait for it to be ready, or add a DoEvents loop that just checks to make sure that readyState = "complete"

2/5/2007 5:07:56 PM

Similar Artilces:

How to get the HREF value of the Anchor tag in a web page using the web browser control in
Hi Friends,               i have a webserver control in my application.i load the web browser control on a button click using the below code Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click                AxWebBrowser1.Navigate("", False) End sub once the page is loaded in the browser i want the <a> HREF value in that page.For example if that page has ...

Sending SMS using or using or
Hi  My requirement is I hav one csv file with these fields id,mobilenum,messgae,status.intiallu staus is 0. once i read the all fileds and take that mobile number.using tat mobile number  i need to send sms .after sending sms i shuld change status as 1 How to send sms thru coding (please dont provide any links.if it is provide also please give working links becox i checked codeproject .i didnt get any nice link. and also provide the how to update the status field im csv file   Thank ssandhya   To send SMS, you need some third party SMS providers. if you consul...

Visual Studio .NET cannot create or open the application. The likeliest problem is that required components are not installed on the local Web server. Run Visual Studio .NET setup and add the Web Deve
I installed Visual Studio .NET 2003 on Windows Vista Home Premuim, but I'm unable to select "Web Development" item from "Server Components" during the installation. I installed all the pre-requisits but I can not see Front Page Server Extention in the programs. I can see also the IIS. Appreciate if any one can guide me with the solution.   Thanks.   FPSE is not included with Vista, it's a separate download.  See for this. JeffPlease: Don't forget to click "Mark as Answer" on the post that helped you. Tha...

.Net 2.0 Web application using is unable to create object of another dll writen in C# .net 2.0
Hi, I habe created one web application using which is adding reference of dlls written in C# and .net 2.0. But whenever trying to create object of referencing dll, it is throwing error :Object reference does not set to an object. But, locally it is working fine,. In the server i have deployed the .aspx files and dll files in the bin. There were already an web.config in the server which is of .net 1.1. But checked it is retrieving value for that web.config correctly. Should i have to deply any other files and if not what can be the solution for this? Please help. Thanks, So...

Can you return .net web controls in a .net page from a web service?
I've got a problem with a project. I've got to compile an entire .net page and return it as part of a Web Service for display. The problem I have is that I need to add WebControls and functionality to the page so that not only the html content and images are displayed (which I've managed) but that textboxes, labels, buttons and datasets can be displayed also. Essentially I need to make a call from one site for a page, populate the page and return it in a state as though it resided on the same server/webspace as the calling page. Code is currently built as follows into a string: strOpenHT...

Both C# ASPX pages and VB.NET ASPX in single VB.NET Web Applcation Template
Hi.. Is it possible to have both c# pages and VB pages in same Webapplication, what i chose is VB.NET Web application Template. With Thanks, Jaya.... I don't see why you couldn't, but for the sake of consistency I don't know why you would want to do this. When you choose a C# or VB.NET application template(I'm assuming you're using VS or WebMatrix), it simply creates a .aspx file that includes a page directive that specifies the page language. If you created a C# template but want to use VB.Net instead, you need to go from: <%@ Page Language="C#" .... to...

Converting windows application using web service from Visual 2003 to Visual 2005
Hello, everyone! I have a solution which contains a windows project,a web service project and several other library projects. These projects were coded under visual 2003. Now I need to converted them to use Visual 2005. Does any one know any article providing step-by-step guide  to converting WINDOWS APPLICATION with web service? I can find one under MSDN for converting web project.  But I guess I am a little confused if mine should follow this article since I am using web service in my windows application? Thanks a lot in advance.  ...

How to get new web app to use .NET 2.0 on Win2K server using .NET 1.1 as default framework?
I have .net framework1.1 and 2.0 on our server running win2K. i have existing applications that uses 1.1, i also have a new app that use 2.0.  how can i set my new .NET 2.0 app to point to 2.0 without messing up my existing .NET 1.1 apps? To specify the ASP .Net version fro a web application, do the followingIn IIS Manager select the web application -> Properties -> ASP.Net TabSelect  ASP.Net version you want to use for the applicationRegards,PrashantDont forget to click "Mark as Answer" on the post that helped you. But I am running Win2K...

Error:Visual Studio .NET cannot create or open the application. The likeliest problem is that required components are not installed on the local Web server. Run Visual Studio .NET setup and add the We
Hi, I installed the IIS 5.0 after VS.Net 2003 (1.1). after that I did run the aspnet_regiis -i at the visual studio command prompt. I am able to run local web application created on my PC. But when I tried to copy an web application created at shared PC into the wwwroot folder, I get the following error while trying to open the project in VS.Net. I've created the virtual directory for the project and also set the integrated windows authentication under the directory security tab in the IIS. Please help me resolving the problem. Thank You.   Do you have FrontPage Server Ext...

Converting Web Site from Vb.Net 2003 to Vb.Net 2005
I have a web site in 2003 that I what to convert to 2005. I open my web site in the visual studio 2005 by Local IIS option. I follow the steps of the visual studio conversion wizard.In the conversion report I received the following warning 'Referencepath' settings have not been converted.  Can anyone tell what I have to do to make this warning disappear? Best regards,Sérgio 'Referencepath'  is a property you can set with with VS2003 project file, sothat when ever you to do Add reference this path is serached for class libraries.  We do not  have that ...

How to call a .net web service from another .net web service?
Hi all,I have developed two asp .net web services using visual studio .net 2003.I wish to call one web service from another web service.I tried adding a web reference of the web service in another web service and was able to do so.but i m not able to access the web methods provided by the web servicecould you please suggest a way to go about itExpecting quick replyThanxCharmy try to make sure that you reference it in the web reference and call it properly this is sample  [WebMethod()] public double CalcDistance(int x1, int y1, int x2, int y2) { Calculator.Service1 calc = new...

Run Web app using Web Harpoon
Does anyone know what Begin Tag and End Tag to use to run a VB.Net web App in Web Harpoon? We are experiencing errors trying to run the app. Error --> The state information is invalid for this page and might be corrupted Thanks,   Erik...

Functions in Web Pages using VB.NET
Does anyone know where to place a FUNCTION with WEB Programming using VB.NET code behind? For example, if I have 4 ASPX pages and will use the same function, where or what part of the web page can I place this function or do I need to have that function in each of the ASPX page? Unlike in a COM program using VB.NET, that function would most probably reside in the MODULE and any VB.NET form can easily call it. TIF you can put it in a class***********************Dinakar NethiLife is short. Enjoy it.*********************** Thanks....

Using web matrix web server with Visual Studio .NET 2003
Hello all, I am a computer system technology student and my college is a part of the MSDN Academic alliance, so I managed to recieve an educational copy of Visual Studio.NET 2003. Seeing as I am on a work term and actually have free time at night... I have decided to punish myself and learn another technology. My problem is that I am running it on a Windows XP Home edition system at home, so I cannot run IIS. I do have the professional CD, also from MSDN acdemic alliance, but, 1) I may someday use my XP Home to produce comercial solutions in HTML, PHP, JSP or other (though I'll pr...

Web resources about - How to get HTML Source of web page opened by web browser using -

Blind Browser
Nifty idea from Charlie Deets: a browser for web designers working on retina displays, to test how sites look on non-retina displays.

Nokia Browser for Symbian - Wikipedia, the free encyclopedia
Copy paste support is poor. If you have a device with no Control-key or Pen-key, you can not copy paste in most web forms. With older Nokia models, ...

Browser-based jailbreak for iOS 9.1 and 9.2 beta exists, but don’t expect it to see the light of day
... 9.2 beta —without even needing to plug it into a computer. Our iOS #0day bounty has expired & we have one winning team who made a remote browser-based ...

Mozilla Releases Firefox Web Browser on iOS
Mozilla has announced the release of its Firefox Web browser app on iOS devices. The app allows users to connect their Firefox account to access ...

Finally, Mozilla’s Firefox Web browser is now available on iOS
Better late than never? At long last, Mozilla has released its popular Web browser on iOS. Thats right: You can now browse the Web on your iPhone, ...

Avast 2016 ships with password manager, SafeZone browser
... details, too), but also syncs them with your mobile devices via new iOS and Android apps. The commercial editions also get the SafeZone browser, ...

Top 10 Free Must Have SEO Browser Plugins
... like ScreamingFrog, SearchMetrics, Majestic, Ahrefs, SEMRush, and the list could go on and on, but people often overlook the power of browser ...

Microsoft CEO Satya Nadella: Smart agents like Cortana will replace the web browser
First, we had the PC. Then we had the browser. Next, Microsoft CEO Satya Nadella thinks it will be the "agent," the sort of virtual assistant ...

You can finally use Mozilla’s Firefox web browser on iOS
... Mozilla has finally brought Firefox to iOS devices around the world, after first appearing on Android more than three years ago. The browser ...

Want to play an 8-bit version of Odin Sphere in your browser? Take to Twitter
... neat little promotion for their upcoming ports of Odin Sphere . If 28,888 people tweet out that they're interested, we'll unlock an 8-bit browser ...

Resources last updated: 11/25/2015 7:01:54 PM