Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / February 2008

Tip: Looking for answers? Try searching our database.

DefaultFocus Does not Work in IE?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
dmeglio@gmail.com - 10 Feb 2008 21:44 GMT
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 <form> tag
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?
Jose A. Fernandez - 10 Feb 2008 22:29 GMT
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 <form> tag
> 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?
Lars - 11 Feb 2008 00:19 GMT
Hi

Suppose I don't want to show the data in a GridView. In stead I would like
to depending on the data return create output in the following format.

<li><a href="http:www.domain.com/filename1.mp3">File Name 1</a></li>
<li><a href="http:www.domain.com/filename2.mp3">File Name 2</a></li>
<li><a href="http:www.domain.com/filename3.mp3">File Name 3</a></li>

The selected from a table in a data base using a SqlDataSource.

http://www.domain.com/filename1.mp3    |    File Name 1
http://www.domain.com/filename2.mp3    |    File Name 2
http://www.domain.com/filename3.mp3    |    File Name 3

Navigating in the GridView doesn't seam that difficult but how do I write to
the actual document that is the putput page. Similar to printf(",,,,"); in
PHP.

To change the GridViews behaviour using Java script and OnClicks etc seamt
much more difficult.

Lars

> if try into codebehind, Load Page...
>   txtUsername.Focus() ??
[quoted text clipped - 11 lines]
>> 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?
dmeglio@gmail.com - 11 Feb 2008 02:28 GMT
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?

> if try into codebehind, Load Page...
>    txtUsername.Focus() ??
[quoted text clipped - 14 lines]
>
> - Show quoted text -

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.