可以用form指定預設按鈕,如果沒有指定defaultbutton,會自動觸發最前面的button
<form id="form1" runat="server" defaultbutton="Button1">
<div>
<asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
<asp:TextBox ID="TextBox2" runat="server"></asp:TextBox>
</div>
<div>
<asp:Button ID="Button0" runat="server" Text="TEST" OnClick="Button0_Click" />
<asp:Button ID="Button1" runat="server" Text="查詢" OnClick="Button1_Click" />
</div>
</form>