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