[Mono-winforms-list] Error reading the number of frame in a HTML page using WebBrowser class

maurizio.regoli maurizio.regoli at gmail.com
Fri Aug 6 11:46:46 EDT 2010


Hi,
 I'm try to get the number of frame in a HTML page using WebBrowser class
running on Mono. For example, if I try to navigate in
http://localhost/index.html where

index.html source code
<html>
<head>
<meta http-equiv="content-type" content="text/html;charset=iso-8859-1">
<title>Test Page</title>
</head>
<frameset cols="175,*" bordercolor="white" border="0" framespacing="0"
frameborder="NO">
<frame src="index04_02.html" name="Menu" scrolling="NO" noresize>
<frame src="index04_04.html" name="body" noresize>
<noframes>
<body bgcolor="white">
</body>
</noframes>
</frameset>
</html> 

index04_02.html source code
<html>
<head>
<meta http-equiv="content-type" content="text/html;charset=iso-8859-1">
<title>remote IU</title>
</head>
<body link="#0033ff" vlink="#0033ff" alink="red" bgcolor="#ccccff" >

Admin

</body>
</html> 

index04_04.html source code
<html>
<head>
<meta http-equiv="content-type" content="text/html;charset=iso-8859-1">
<title>remote IU</title>
</head>
<body link="#0033ff" vlink="#0033ff" alink="red" bgcolor="#ccccff" >

User

</body>
</html> 

the
this.webBrowser1.Document.Window.Frames["Menu"].Document.Window.Frames.Count
property return 2.
The same piece of code under .NET return the correct value.

Please, help me!!!!
-- 
View this message in context: http://mono.1490590.n4.nabble.com/Error-reading-the-number-of-frame-in-a-HTML-page-using-WebBrowser-class-tp2316472p2316472.html
Sent from the Mono - WinForms mailing list archive at Nabble.com.


More information about the Mono-winforms-list mailing list