DefaultFocus Does not Work in IE?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • dmeglio@gmail.com

    DefaultFocus Does not Work in IE?

    I've just upgraded a project to ASP.NET 3.5 and VS2008 from .NET 1.1.
    All is going well. I noticed a great new attribute on the <formtag
    called DefaultFocus. I gave it a try. When I load up my page in IE,
    nothing is different. However, in FireFox, my txtUsername is given
    focus. Any reason why this isn't working in IE7? I've read some people
    saying it is a problem in WebForm_AutoFoc us, any ideas/suggestions?
  • Jose A. Fernandez

    #2
    Re: DefaultFocus Does not Work in IE?

    if try into codebehind, Load Page...
    txtUsername.Foc us() ??
    same effect?

    _______________ _______
    Jose A. Fernandez
    blog: http://geeks.ms/blogs/fernandezja



    On 10 feb, 19:44, dmeg...@gmail.c om wrote:
    I've just upgraded a project to ASP.NET 3.5 and VS2008 from .NET 1.1.
    All is going well. I noticed a great new attribute on the <formtag
    called DefaultFocus. I gave it a try. When I load up my page in IE,
    nothing is different. However, in FireFox, my txtUsername is given
    focus. Any reason why this isn't working in IE7? I've read some people
    saying it is a problem in WebForm_AutoFoc us, any ideas/suggestions?

    Comment

    • dmeglio@gmail.com

      #3
      Re: DefaultFocus Does not Work in IE?

      Indeed. No effect. Both work just fine in FireFox, however. Strange
      that MS built the JavaScript in such a way that it works better in
      FireFox than in IE... anyone else experiencing this issue?

      On Feb 10, 5:29 pm, "Jose A. Fernandez" <fernande...@gm ail.comwrote:
      if try into codebehind, Load Page...
         txtUsername.Foc us() ??
      same effect?
      >
      _______________ _______
      Jose A. Fernandez
      blog:http://geeks.ms/blogs/fernandezja
      >
      On 10 feb, 19:44, dmeg...@gmail.c om wrote:
      >
      >
      >
      I've just upgraded a project to ASP.NET 3.5 and VS2008 from .NET 1.1.
      All is going well. I noticed a great new attribute on the <formtag
      called DefaultFocus. I gave it a try. When I load up my page in IE,
      nothing is different. However, in FireFox, my txtUsername is given
      focus. Any reason why this isn't working in IE7? I've read some people
      saying it is a problem in WebForm_AutoFoc us, any ideas/suggestions?- Hide quoted text -
      >
      - Show quoted text -

      Comment

      Working...