It is a focus issue. Use a Javascript focus command and set focus to the control you do want to fire if they press enter and/or manipulate the default button.
http://www.metabuilders.com/Tools/DefaultButtons.aspx is a easy solution. It requires no Javascript knowledge just drop a DLL in the BIN directory and insert an easy command to solve the problem. On 9/29/05, Giovani Cardoso <[EMAIL PROTECTED]> wrote: > I have a page that contains an user control (.ascx). This user control has > a button. > When I press the Enter key in my page, this user control's button is > executed. I wouldn't like > this happens. How can I avoid this, because I press the Enter key in one > page and > the button in another is executed? > > Thanks. > > > --------------------------------- > Yahoo! for Good > Click here to donate to the Hurricane Katrina relief effort. > > [Non-text portions of this message have been removed] > > > > ________________________________ > YAHOO! GROUPS LINKS > > > Visit your group "AspNetAnyQuestionIsOk" on the web. > > To unsubscribe from this group, send an email to: > [EMAIL PROTECTED] > > Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. > > ________________________________ > ------------------------ Yahoo! Groups Sponsor --------------------~--> Fair play? Video games influencing politics. Click and talk back! http://us.click.yahoo.com/T8sf5C/tzNLAA/TtwFAA/saFolB/TM --------------------------------------------------------------------~-> Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/AspNetAnyQuestionIsOk/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
