[Mono-bugs] [Bug 339426] New: the attribute defaultbutton of the element <form> of ASP. NET pages doesn't seem to work

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Mon Nov 5 23:19:09 EST 2007


https://bugzilla.novell.com/show_bug.cgi?id=339426

           Summary: the attribute defaultbutton of the element <form> of
                    ASP.NET pages doesn't seem to work
           Product: Mono: Class Libraries
           Version: 1.2
          Platform: i586
        OS/Version: Linux
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: Sys.Web
        AssignedTo: mhabersack at novell.com
        ReportedBy: orgsow at gmail.com
         QAContact: mono-bugs at ximian.com
          Found By: ---


code like this:

<form id="form1" runat="server" defaultbutton="SubmitButton">
    <div>
      <table style="width: 100%; vertical-align: top;" width="100%">
        <tr><td>
<asp:TextBox ID="InputTextbox" runat="server" Width="90%"
                          Wrap="False"></asp:TextBox></td>
                    </tr>
                    <tr>
                      <td align="left">
                        <asp:Button ID="SubmitButton" runat="server"
OnClick="SubmitButton_Click"
                          Text="Submit" />
                        &nbsp;</td>
                    </tr>
                  </table>
    </div>
  </form>

should fire the SubmitButton_Click event handler if the user hits the enter key
while in the text field, which submits the form.  This event fires when using
window's libraries but not mono's.

The library I am using is version 1.2.5.1-1

It's possible this is a bug with mono-apache-server2 if it's the web server's
responsibility to fire the event but I'm assuming this code is inside mono's
libraries.


-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.


More information about the mono-bugs mailing list