How to use axWebBrowserto get the HTML source of the page in a frameset?
Posted on 2004-10-12
A multi-frame page contains 3 html pages: page A, page B and page C. I need to get the HTML source of page C. I tried to use AxSHDocVw.AxWebBrowser to do that:
mshtml.HTMLDocument htm = (mshtml.HTMLDocument)axWebBrowser1.Document;
I can get the frame count by "htm.frames.length".
But, while I tried to use "htm.frames(2).Document.documentElement.innerText" to get HTML source, it said "Cannot apply indexing with  to an expression of type 'mshtml.FramesCollection'".
Can you help me to resolve it? I have spent many days on it.