Link to home
Start Free TrialLog in
Avatar of Peter Kiers
Peter KiersFlag for Netherlands

asked on

Why my app shows only a few lines of HTML-code of a webpage, and IE shows it all.

Hi there,

I have searched on the internet for examples to get the whole HTML-code of a certain webpage. Alle these examples just get me a few lines. The strangest thing is when I take f.e: Internet Explorer, right-click on it and choose Display Source in the context-menu I get a new windows with all the HTML-code of that page. When i do the same with Mozilla Firefox I get also a few lines. Does someone know why my application and Firefox shows only a few lines of code and IE shows it all. Who knows why, and how to solve this problem in my application.

Greetings, Peter Kiers
Avatar of carloselfaite
carloselfaite

can you provide the webpage url?
Avatar of Peter Kiers

ASKER

Unfortunally not. The url is an url i have logged into. Peter
Avatar of Dave Baldwin
It is difficult to help you when you can't give the info to check the problem.  However... it sounds like there may be an error on that page.
I have a webbrowser on my form that displays a page. When I right-click on the webbrowser and select display source in the context-menu i get the full html of that page. I have also create a button with the following code:

        private void bbGetHtml_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            String source = ("source.txt");
            StreamWriter writer = File.CreateText(source);
            writer.Write(webBrowser1.DocumentText);
            writer.Close();
            Process.Start("notepad.exe", source);
        }

Open in new window


I get only a few lines.

How can I sove this?

Greetings, Peter Kiers
And I like to mention that the website uses a frameset!

Maybe that is the problem. But how to solve this?



Peter
ASKER CERTIFIED SOLUTION
Avatar of Peter Kiers
Peter Kiers
Flag of Netherlands image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Found my own solution