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

Stifu stifu at free.fr
Fri Aug 6 12:34:14 EDT 2010


Please file a bug report.
http://mono-project.com/Bugs#How_to_make_a_good_bug_report


maurizio.regoli wrote:
> 
> 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-tp2316472p2316519.html
Sent from the Mono - WinForms mailing list archive at Nabble.com.


More information about the Mono-winforms-list mailing list