Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Webbrowser's text from a frame

Posted on 2004-04-01
2
Medium Priority
?
758 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 270 total points
ID: 10732351
or
 webbrowser1.Document.frames("FrameName").document.body.innerHTML
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

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…
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
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…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…
Suggested Courses

704 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