[Mono-list] MS ASP .NET Bug

Gonzalo Paniagua Javier gonzalo.reply.to.the.list.iam.subscribed@ximian.com
Mon, 26 Jul 2004 03:52:48 +0200


El jue, 15-07-2004 a las 10:49, Pedro Santos escribió:
> Hello, hello!
>  
> I just found a bug in ASP .NET, I am at work and can't test this in Mono, so I wonder if it would happen in Mono too. The bug is simple, supose we have the following in an aspx:
> <script runat="server">
>    void ProcessClick( object sender, EventArgs args )
>    {
>       string sql = @"<script language='javascript'>";
>       sql += @"alert('";
>       sql += nome.Value;
>       sql += "');";
>       sql += @"</script>"; // Here is the PROBLEM!

Use "<" + "/script>" instead. AFAIR, they mention this in somewhere in
the documentation.

-Gonzalo