473,388 Members | 1,298 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,388 software developers and data experts.

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_AutoFocus, any ideas/suggestions?
Feb 10 '08 #1
2 2455
if try into codebehind, Load Page...
txtUsername.Focus() ??
same effect?

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

On 10 feb, 19:44, dmeg...@gmail.com 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_AutoFocus, any ideas/suggestions?
Feb 10 '08 #2
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...@gmail.comwrote:
if try into codebehind, Load Page...
* *txtUsername.Focus() ??
same effect?

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

On 10 feb, 19:44, dmeg...@gmail.com 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_AutoFocus, any ideas/suggestions?- Hide quoted text -

- Show quoted text -
Feb 11 '08 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: Jonas | last post by:
This works fine in Win XP but does not work at all in Win 98. Private WithEvents objIExplorer As InternetExplorer I have to do it like this to get it to work in Win 98 Dim objIExplorer As...
5
by: me | last post by:
I have a Class Library that contains a Form and several helper classes. A thread gets created that performs processing of data behind the scenes and the Form never gets displayed (it is for debug...
22
by: Robert Bralic | last post by:
CAN anybody tell me any address where I can download some small(1000-2000) lines C++ proghram source. Or send me ,a small(1000-2000) lines C++ program source that I can compille with gpp under...
12
by: Frank Hauptlorenz | last post by:
Hello Out there! I have a DB2 V7.2 Database (Fix11) on Win 2000 Professional. It was before a NT 4 based Domain - now it is a Win 2000 Domain. The database server is a domain member. Now...
2
by: Oz Kologlu | last post by:
Hi folks, IE and Asp.net 2.0 are doing some pretty bizzare things. Some of our users were getting pretty weary of IE redrawing and "flashing" what is essentially a pretty static page every time...
14
by: Anoop | last post by:
Hi, I am new to this newsgroup and need help in the following questions. 1. I am workin' on a GUI application. Does C# provides Layout Managers the way Java does to design GUI? I know that it...
89
by: Cuthbert | last post by:
After compiling the source code with gcc v.4.1.1, I got a warning message: "/tmp/ccixzSIL.o: In function 'main';ex.c: (.text+0x9a): warning: the 'gets' function is dangerous and should not be...
14
by: webEater | last post by:
I have a problem, it's not browser specific, and I don't get a solution. I have an (X)HTML document, I show you a part of it: .... <!--<div class="pad">--> <div id="eventImages"><img src=""...
2
by: =?Utf-8?B?QmlnSm9obg==?= | last post by:
We can set the default button and focus field in ASP.Net 2.0 on the Form tag. My form tag is in the Master page, but the controls are in containers. I read through a few articles which did not...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.