Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Testing from local host in IE
Message
 
 
To
All
General information
Forum:
ASP.NET
Category:
Other
Title:
Testing from local host in IE
Environment versions
OS:
Windows XP
Database:
MS SQL Server
Miscellaneous
Thread ID:
01298470
Message ID:
01298470
Views:
61
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
Reply
Map
View

Click here to load this message in the networking platform