Click here to Skip to main content
15,881,248 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have a Geckofx webcontrol in my winforms app. I want to fill some textboxes from my code. The website, which I want to fill is devided in iframes. The iframe I want to get into has as source a link with a session ID.

It seems to be not possible to go into that iframe en get its content:

C#
GeckoIFrameElement editFrame = null;
        GeckoIFrameElement mainFrame = geckoWebBrowser1.Document.GetElementsByTagName("iframe")[0] as GeckoIFrameElement;
        GeckoIFrameElement workFrame = mainFrame.ContentDocument.GetElementsByTagName("iframe")[3] as GeckoIFrameElement;
        editFrame = workFrame.ContentDocument.GetElementById("iframePage1") as GeckoIFrameElement;


The workFrame.ContentDocument returns null.

Is there any possibility to get this work ?

What I have tried:

I tried to get the ContentDocument from the iframe with the sessiontoken.
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900