Question How to load page out from a frame source

SealInFate

New member
Joined
Jan 6, 2011
Messages
2
Programming Experience
Beginner
I need to access to a webpage, and load its content out as a HTML text format, the problem is, when i right click and choose view source, it return me a correct document text, but when i try to access it with VB.NET, i encounter a problem which it cannot return the content as view source do, because the content is a source in a frame, like the following.

<frame id="f1" scrolling="no" noresize="noresize" src="Checker.aspx"/>

My question is, how / what command should i use to retrieve the content out from this frame of a webpage and load its content on a textbox, thank you
 
In WebBrowser control it is .Document.Window.Frames collection which can be indexed by Integer or String name (not id). Each frame is a HtmlWindow that again contains a HtmlDocument.
The src is the address to that document, so you may read that directly instead of going through the frames page.
 
Thank for reply, below is what i retrieve from the frame using the method you taught

<FORM id=form1 name=form1 action=Checker.aspx method=post>
<DIV><INPUT id=__VIEWSTATE type=hidden value=/wEPDwUJNzgzNDMwNTMzZGRlREiqeyzsiv6R3A9irVGQXzNhKA== name=__VIEWSTATE> </DIV>
<DIV id=tmp><IMG id=pic0 height=1 src="http://mem32.cmdbet.com/App_Themes/dot01.gif?6490" width=1 onload=CountTime(0);> <IMG id=pic1 height=1 src="http://mem31.cmdbet.com/App_Themes/dot01.gif?6490" width=1 onload=CountTime(1);> <IMG id=pic2 height=1 src="http://mem42.cmdbet.com/App_Themes/dot01.gif?6490" width=1 onload=CountTime(2);> <IMG id=pic3 height=1 src="http://mem41.cmdbet.com/App_Themes/dot01.gif?6490" width=1 onload=CountTime(3);> <IMG id=pic4 height=1 src="http://mem05.cmdbet.com/App_Themes/dot01.gif?6490" width=1 onload=CountTime(4);> <IMG id=pic5 height=1 src="http://mem03.cmdbet.com/App_Themes/dot01.gif?6490" width=1 onload=CountTime(5);> <IMG id=pic6 height=1 src="http://mem04.cmdbet.com/App_Themes/dot01.gif?6490" width=1 onload=CountTime(6);> <IMG id=pic7 height=1 src="http://mem02.cmdbet.com/App_Themes/dot01.gif?6490" width=1 onload=CountTime(7);> </DIV></FORM>

What can i do if i want to retrieve the content of the form, checker.aspx

thank
 
That is the target of a form submit action, so it probably expects some input values. Perhaps you can do a .Forms(0).InvokeMember("submit") on that document. The other elements does some javascript loading and I wouldn't know what that means.
 
Back
Top