On this test page I intend that if you press the Enter key with focus in TextBox1, Button1_Click will fire, whereas in TextBox2, Button2_Click will fire. This is not working in IE8 or FF3.5. Any ideas?
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="test.aspx.cs" Inherits="test" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>Test Page</title>
<meta name="ROBOTS" content="NOINDEX" />
</head>
<body>
<form id="form1" runat="server">
<asp:Panel ID="Panel1" DefaultButton="Button1" runat="server">
<asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
<asp:Button ID="Button1" runat="server" Text="Button1" onclick="Button1_Click" />
</asp:Panel>
<asp:Panel ID="Panel2" DefaultButton="Button2" runat="server">
<asp:TextBox ID="TextBox2" runat="server"></asp:TextBox>
<asp:Button ID="Button2" runat="server" Text="Button2" onclick="Button2_Click" />
</asp:Panel>
<asp:Label ID="Label1" runat="server" Text="Label1"></asp:Label>
</form>
</body>
</html>