By default Focus Is set to Button........Plz... help me out
i have a tab control on click of that tab i open a web page in Asp.Net. now when
i click on the page and Hit Enter the focus automaticly goes to the First Button on the page....as this control is Date select Button the date popup opens.In the whole code i hv not set the focus any where and even tabindex of all controls r set to Zero (0). i am not getting why it happening...help me out.
[392 byte] By [
meerraj] at [2007-11-11 10:29:52]

# 1 Re: By default Focus Is set to Button........Plz... help me out
See if this helps: http://www.google.com/search?q=asp.net+set+focus . You may explicitly set the focus to the desired control.
# 2 Re: By default Focus Is set to Button........Plz... help me out
hi , thanks for your reply ... bt i dont want to set the focus to a control.... i want that if the user click on the page and hits enter nothing should happen. right now as the focus set by default to first button on the page and whn my user HIT THE ENTER this button executes. i hv nt writen any code for focus but it directly focuses on the first button on my form . this is creating problem...... i would really be greatful if u help me out...