Okay, thanks! I think I'll just change the strategy. Clicking enter would trigger the "No" button. Thanks! :)
--- Peter Brunone <[EMAIL PROTECTED]> wrote: > > Focusing probably won't work. With multiple > submits, the > document decides which button is the default button > (usually by which is > first on the page). If you change the order of your > buttons (i.e. put > the No button first), it should be highlighted. > > If you just want a specific button to be pressed if > the user > hits enter, you might consider > > http://www.metabuilders.com/Tools/DefaultButtons.aspx > > (or you could just write your own script that clicks > a certain button > when the user presses Enter). > > -----Original Message----- > From: Charles Carroll [mailto:[EMAIL PROTECTED] > > http://www.metabuilders.com/Tools/FirstFocus.aspx > may help. > > On Wed, 13 Oct 2004 07:48:04 -0700 (PDT), Nice Guy > <[EMAIL PROTECTED]> wrote: > > > > Hi! > > > > I have a problem regarding focusing on a specific > > button. I'm using ASP.Net and C#.Net. I have two > > buttons - "Yes" (btnYes) and "No" (btnNo). I want > to highlight the > > "No" button upon loading, so I used > > onfiltered="document.frmBody.btnNo.focus()" in the > <body> > > tag. I have another control, "txtData" - textbox, > in > > the screen. On first load, it highlights the > btnNo > > control. If I highlight the txtData control, the > > screen keeps on highlighting the btnYes control > and > > not the btnNo. Could you please help me on this > one. I > > need to highlight the btnNo button as long as it > is on > > that specific web page. Thanks a lot for helping! > :) > > > __________________________________ Do you Yahoo!? Y! Messenger - Communicate in real time. Download now. http://messenger.yahoo.com ------------------------ Yahoo! Groups Sponsor --------------------~--> Make a clean sweep of pop-up ads. Yahoo! Companion Toolbar. Now with Pop-Up Blocker. Get it for free! http://us.click.yahoo.com/L5YrjA/eSIIAA/yQLSAA/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/
