Welcome to ZaiNaLe Developer Community-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
945 views
in Technique[技术] by (71.8m points)

.net - C# - Win Forms - WebBrowser Control - Document differs from what is shown

I have the problem, that the WebBrowser Control shows something complete different than whats in the code. But I need the document which the control is showing.

In this image you can see for example "principle features not" and "Ausführungs-Historie" enter image description here

but the WebBrowser.DocumentText is showing this:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <meta http-equiv="Content-language" content="en" />
    <meta name="generator" content="-Text Replaced-" />
    <meta name="author" content="-Text Replaced-" />
    <meta name="copyright" content="-Text Replaced-" />
    <meta name="robots" content="NOFOLLOW" />
    <title>-Text Replaced-</title>
    <meta name="description" content="-Text Replaced-" />
    <link rel="icon" href="-Text Replaced-" type="image/x-icon" />
</head>

<frameset rows="-Text Replaced-" frameborder="0" framespacing="0">
    <frame src="-Text Replaced-" name="titlebar" scrolling="no" noresize="noresize" />
    <frame src="-Text Replaced-" scrolling='auto' name='mainframe' />
    <noframes>
        <body>-Text Replaced- required a frames supporting browser.</body>
    </noframes>
</frameset>

</html>

Some text is replaced with -Text Replaced-. But you can see that these strings definitly are missing: "principle features not" and "Ausführungs-Historie". I don't know why the control shows something complete different than the document text.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
等待大神解答

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to ZaiNaLe Developer Community-Open, Learning and Share
...