I failed to mention that this is part of a control and the master page 
holds the form tag, so I cannot do that because I don't want the 
default button to be the same for every page that calls the master 
page.  Also I am not using panels.  Is there any other way??  TIA

Sincerely,
Rick

You need to set the defaultbutton property of the HTML form or panel....

<form id="form1" runat="server" defaultbutton="Button1">
<div>
<asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
<asp:Button ID="Button1"
runat="server" Text="Button" OnClick="Button1_Click" />
</div>
</form>


Reply via email to