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>

On 2/28/07, Rick <[EMAIL PROTECTED]> wrote:
>
>   Hello, I have a page that I want the submit button to click even if the
> user clicks enter in the text box. I think it is something like
> setfocus(...) in the Page_Load function, but when I call that SetFocus
> function, it recgonizes the text box, but not the submit button. Can
> anyone help me with this please, thank you very much in advance:
>
> Sincerely,
>
> Rick
>
>  
>



-- 
Dean Fiala
Very Practical Software, Inc
Now with Blogging...
http://www.vpsw.com/blogbaby
Microsoft MVP


[Non-text portions of this message have been removed]

Reply via email to