I think when designing the page, if you add No button first and then Yes
button, the No button will be the one highlighted when entering text in
the textbox.
 
Raj.
 
-----Original Message-----
From: Nice Guy [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, October 13, 2004 3:18 PM
To: [EMAIL PROTECTED]
Subject: RE: [AspNetAnyQuestionIsOk] problem in highlighting (focusing)
on a specific button
 
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
ADVERTISEMENT
click here
<http://us.ard.yahoo.com/SIG=129r1e26k/M=315388.5497957.6576270.3001176/
D=groups/S=1705006764:HM/EXP=1097781499/A=2372354/R=0/SIG=12id813k2/*htt
ps:/www.orchardbank.com/hcs/hcsapplication?pf=PLApply&media=EMYHNL40F210
04SS> 
 
<http://us.adserver.yahoo.com/l?M=315388.5497957.6576270.3001176/D=group
s/S=:HM/A=2372354/rand=565685380> 
 
  _____  

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]
<mailto:[EMAIL PROTECTED]
cribe> 
  
*         Your use of Yahoo! Groups is subject to the Yahoo! Terms of
Service <http://docs.yahoo.com/info/terms/> . 


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



------------------------ 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/
 



Reply via email to