Avatar of Peter Kiers
Peter Kiers
Flag 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
C#

Avatar of undefined
Last Comment
Peter Kiers

8/22/2022 - Mon
carloselfaite

can you provide the webpage url?
Peter Kiers

ASKER
Unfortunally not. The url is an url i have logged into. Peter
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.
Experts Exchange has (a) saved my job multiple times, (b) saved me hours, days, and even weeks of work, and often (c) makes me look like a superhero! This place is MAGIC!
Walt Forbes
Peter Kiers

ASKER
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
Peter Kiers

ASKER
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
Peter Kiers

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
Peter Kiers

ASKER
Found my own solution
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.