Solved

Webbrowser's text from a frame

Posted on 2004-04-01
2
753 Views
Last Modified: 2013-12-25
I have a webbrowser control in my app.
I load an html from my local machine that submits the form to another location (site).

after submission, i found 2 frames in my webbrowser as a response from the site.

I want to access the text of the first frame when the download is complete.

I tried to access it as we simply do in frameless html pages (in document complete event) but doesnt work.
eg.      webbrowser1.Document.body.innerHTML


the following method gives me the frame with an href=<site location> and not the source of the frame:
        webbrowser1.Document.All.tags("frame")(0).src


Can anyone tell the procedure of reading text of the frame from the webbrowser?

thanks
0
Comment
Question by:Neeraj Soni
  • 2
2 Comments
 
LVL 13

Expert Comment

by:crazyman
ID: 10732343
?
 webbrowser1.Document.All.tags("frame")(0).document.body.innerHTML
0
 
LVL 13

Accepted Solution

by:
crazyman earned 90 total points
ID: 10732351
or
 webbrowser1.Document.frames("FrameName").document.body.innerHTML
0

Featured Post

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

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

Suggested Solutions

There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
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…
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…

770 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