[Mono-list] Microsoft ASP .NET Bug

Pedro Santos pre@oninetspeed.pt
Fri, 19 Mar 2004 17:25:55 +0000


--=-9yXcUIdAZHsoa68gBBVy
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable


Hi there! I just heard of a peculiar bug in a ASP .NET validator. I
tryed to test it on mono, but it looks like mono isn't performing client
validation.

Well, to start, just create an aspx with:

<form runat=3D"server">
  <table>
    <tr>
      <td>

        <asp:TextBox ID=3D"tbFirst" Runat=3D"server"></asp:TextBox>
        <asp:RangeValidator=20
                Runat=3D"server"
                ID=3D"rfv"
                Type=3D"Integer"
                ControlToValidate=3D"tbFirst"
                MinimumValue=3D"0"
                MaximumValue=3D"5"
                Display=3D"Dynamic"
                ErrorMessage=3D"This is a really long error message blah bl=
ah blah blah.">
        </asp:RangeValidator></td>

    </tr>
    <tr>
      <td><asp:TextBox ID=3D"tbSecond" Runat=3D"server"></asp:TextBox></td>
    </tr>
  </table>
</form>

Now, just follow the instructions:

        Throw that in an asp.net page and run it. Resize the IE window
        until it is just a little bigger than the controls. It needs to
        be small enough that when the validator is tripped the text
        wraps to the next line.=20
       =20
        Type something in the top text box that will trip the validator.
        Before tripping the validator move the mouse cursor over the
        upper box and slowly move it down towards the lower box. When
        the cursor is about half way between the boxes it will switch
        from a pointer to a text insert cursor. When it does this,
        single click at that location.=20
       =20
        You will now be able to type in the validator label. You will
        also be able to delete the validator text. Best of all, you can
        even delete the text box. Yeah, baby!
       =20
I could not test it, I do not know if is a general validator bug, or an
only-in-IE bug, or whatever.

On the other hand, is it normal that Mono isn't performing client side
validation?

--=20
Pedro Santos <www.psantos.net>
"Si minor plus est ergo nihil sunt omnia..."

--=-9yXcUIdAZHsoa68gBBVy
Content-Type: application/pgp-signature; name=signature.asc
Content-Description: This is a digitally signed message part

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (GNU/Linux)

iD8DBQBAWy0j00b8YfrkjegRAk9TAJ9YUiMoUZvbDtiDxtTI+vECUIssggCfTTD2
sthfrXqUcFnuKFCz8rTAC7k=
=MapZ
-----END PGP SIGNATURE-----

--=-9yXcUIdAZHsoa68gBBVy--