Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Testing from local host in IE
Message
 
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Titre:
Testing from local host in IE
Versions des environnements
OS:
Windows XP
Database:
MS SQL Server
Divers
Thread ID:
01298470
Message ID:
01298470
Vues:
62
Hi everybody,

We have a Login page where we need to set focus on the first control. So far I was testing it in FireFox and my code worked fine. Today I tried to test in IE (from VS 2005) and the focus doesn't work.

We removed my C# code in Page_Load and put the following in the ASPX source:
<asp:TextBox runat="server" ID="UserName">                                                                    </asp:TextBox>
<script type="text/javascript">document.getElementById('LoginView1_lgn_UserName').select();document.getElementById('LoginView1_lgn_UserName').blur();document.getElementById('LoginView1_lgn_UserName').focus();</script>
The HTML works fine in IE (if we save View Source and run it).

It works in FireFox and if we put URL directly in IE. It only doesn't work when I press Ctrl+F5 in the VS.

Do you know what may be wrong? And is it possible to debug it from VS (Ctrl+F5) at all?

Also I forgot how to switch between browsers in VS (which one to use). Could you please remind me (I asked here this question already, but my memory is very weak lately :()
If it's not broken, fix it until it is.


My Blog
Répondre
Fil
Voir

Click here to load this message in the networking platform