Solved

Webbrowser's text from a frame

Posted on 2004-04-01
2
756 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
[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
  • 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

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

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

Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
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…
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…
Suggested Courses
Course of the Month3 days, 23 hours left to enroll

630 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