[Mono-devel-list] Re: [mono-vb] AW: VB script in ASP page

Raja R Harinath rharinath@novell.com
Wed, 18 Aug 2004 11:31:18 +0530


Hi,

"B Anirban" <banirban@novell.com> writes:

> Oh Great. This is a great news.
>
> But its really surprising why the problem is occurring. It seems that mbas compiler is going wrong while trying to resolve overloaded methods and calling function calls HtmlTextWriter.Write(int) instead of HtmlTextWriter.Write(string).
>
> Now, I am even more puzzled :-).
>
>>>> "Jochen Wezel" <jwezel@compumaster.de> 17-Aug-04 5:54:46 PM >>>
> The problem Anirban described, I only get when I try to use <%= %> or <% %>.
>
> Example not working:
> ====================
> <%@ PAge language="VB" %>
> <html>
> <body>
> <% response.write ("Inside of Page_Load<br>") %>
> Hello world of VB!
> </body>
> </html>
>
> Example working :)
> ==================
> <%@ PAge language="VB" %>
> <html>
> <body>
> <script language="vb">
> sub Page_Load (sender as object, e as eventargs)
> response.write ("Inside of Page_Load<br>")
> end sub
> </script>
> Hello world of VB!
> </body>
> </html>

Not actually surprising, since the error case was on __output.Write, not
response.Write.

- Hari